The value 1234567 in the trailer record is a 9(7) field having the count of records. This is the last field on the trailer record. rest is filler.
I need to increase the size of the trailer count field from 9(7) to 9(13).
Need a syncsort to which would read this file and update the trailer count to reflect the new size of the field
----+----1----+----2----+----3----+----4----+----5
********************************* Top of Data ****
1XXXXX
2YYYYYYYYYYY
3ZZZZZZZZ0000001234567
1XXXXX
2YYYYYYYYYYY
3ZZZZZZZZ0000001234567
Thanks,
Jaya. _________________ "Great spirits have always encountered violent opposition from mediocre minds."
-Albert Einstein
Note: Option VLLONG will truncate any record exceeding the MAX LRECL set to 80 bytes in the output file.
Output:
Code:
----+----1----+----2----+----3----+----4-
********************************* Top of
1XXXXX
2YYYYYYYYYYY
3ZZZZZZZZ0000001234567
1XXXXX
2YYYYYYYYYYY
3ZZZZZZZZ0000001234567
Thanks,
Jaya. _________________ "Great spirits have always encountered violent opposition from mediocre minds."
-Albert Einstein
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