
POSTED: Feb 1, 2012 7:56 AM (GMT)
Post it in a Code format. It will be better for understanding.
Pradeep.

POSTED: Feb 1, 2012 10:11 AM (GMT)
Not sure but
TOTAL S 7 2
cannot receive number 316,476.85 , it would have to be min of 8 2
no impact but if MA01 is only used in SQL it don’t need an F spec
FMA01F IF E K DISK
Phil

POSTED: Feb 1, 2012 4:20 PM (GMT)
the fetch fails because the fields aren’t wide enough to accomodate the data but the program continues
You only test for SQLSTT = ‘02000′ Normal end of file
You would want to make all three variables large enough to accept the largest totals and counts you could ever generate.
Phil

POSTED: Feb 2, 2012 8:55 AM (GMT)
Thanks Phil
Its working …
















