Hi,
I am trying to put a logical record using icetool before every 30th record of a file.
My job abends if record exceeds to 30 and hence need to put a batch header before 30th record logicaly.
logic is that the trailer can be just before the record whoes 4th byte is 0.
like file is:-Trailer should be near to 30th record but should be only before 4th character 0, or shoudl say after one sequence ends and another starts.
15004751310058568391000Z N249076310053589580552150000000001
1501 060387005 CH DOES NOT RECOGNISE NAME OR DAT
1505000000000000000000000000000 0000 0000000000c
TRAILER =========================================
15004751270039352929000Z 240248710060892957450311001276301
1501 0603790CH CANX 12/08/10 CH ATTEMPT TO RESOL
1505081005497868446000000001125840 0000B0000000011
15060000000000002000000000000029574503
Trailer ==========================================
I am already having a trailer at the end which now needs to be populated at every logical 30th record and also at last.
trailer is:- TC
INCLUDE COND=(CODE,EQ,9)
SORT FIELDS=(CODE,A)
SUM FIELDS=(A,B,C,D)
toolin
copy from(infile) to(outfile) using (TC)
Can you suggest how to add teh above logic to this.