by SANDHYA BUDHI » Fri Oct 17, 2008 4:39 pm
My input file has a LRECL "94". for the above example i have to append the count to my output file then my LRECL will change. Suppose say my count length is 9. Then my output LRECL will be "103".
When I tried excuting using the file I am getting Error.
Please find the Sort step I used:
INREC FIELDS=(1,94,9C'1')
SORT FIELDS=(11,9,ZD,A,9,2,ZD,A)
SUM FIELDS=(95,9,ZD)
OUTREC FIELDS=(1,94,95,9,ZD,TO=ZDF,94:X)
Please help me how can I solve this..
In my output file I need the details from my Input file + my count of the Error code.
Input File
20081017140000001010000002301800908294822G908294822071549431
20081017110000001010000010292100974742881G974742881867886788
20081017150000001010000260567500904605439G904605439102107687
20081017140000001010000266623500971166637G971166637002666235
20081017110000001010000472016000997166054G997166054004720160
20081017150000001010000654654700957355466E957355466100633687
In the output file i required: <count>
200810171400000010A0000002301800908294822G9082948220715494312
200810171100000010A0000010292100974742881G9747428815474747472
200810171500000010A0000260567500904605439G9046054391021077472
The count should be based on Group ID and Error code. The blue one is the count of the Errorcodes.
In the Input File for the Group ID 101 we have different Error codes 11,15,and 14.
The count should be based on Group ID and Erorr code.
Please help me in solving this..