I need your help to modify my input file as per my specific requirement. I have to do it through JCL only and I can not use COBOL/REXX/SAS.
I/P File - Record length 80 Bytes
File has some details in first few lines and then count of records at some fixed position (suppose 50)...See file below
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
No of records in file 1 - 2000
No of records in file 2 - 4000
No of records in file 3 - 1000
No of records in file 4 - 3000
No of records in file 5 - 2000
O/P File: Record Length - 80 Bytes (Everything would remain same in O/P file except the count of No. of records...requirement is to subtract 1 from the no. of records)
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
No of records in file 1 - 1999
No of records in file 2 - 3999
No of records in file 3 - 999
No of records in file 4 - 2999
No of records in file 5 - 1999
Please provide your suggestion and if requirement is still not clear then please let me know, will try to explain it in better way.
Regards,
Nishant Singhal
Coded, FWIW