Posted: Fri Nov 11, 2005 6:30 am Post subject: Ezytrieve GET statement failing
Hi all,
I am executing the following ezytrieve for calculating totals of a packed field and writing it into another output file. The get statement is failing. The line after GET INFILE is the error i am getting. If i use goto job, the code is working, but in that case, after end of file, the code below do while is not executing. Please help me out. Also please let me know if there is a sort solution for this.
Output file
------------
Edited field to display totals of field 2 (13 bytes)
Ezytrieve Code
-----------------
[code:1:2fcad89df5]
FILE INFILE
EMP-NUMBER 01 08 A
DISCOUNT-AMNT 09 05 P 2 MASK '-,---,--9.99'
*
FILE TOTALSFL FB(13 0)
TOTAL-DISCOUNT 01 13 N 2 MASK '--,---,---,--9.99'
*
DUMMY W 1 A
WS-TOTALS W 13 N 2
*
JOB INPUT INFILE
*
DO WHILE NOT EOF INFILE
IF ((EMP-NUMBER
Hi Kolusu,
Thanks for the quick reply. But is there any way to get the output as say 123456.78 in my output file. If the mask will not work, is there any alternative for this? Also please let me know if there is a sort solution for this.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum