I'm wondering if any of you know of a utility that can do the following....without spending very much time on this....
1) file is 400 bytes.
2) the 1st record is a "rollyear" record and only contains data in bytes 14-20 something like 2005000 and the rest of the record contains packed 0 or spaces. It is the same format as the rest of the records
3) all other records contain data in the fields,...not 0.
4) Without doing it manually, can the that 1st record be updated to Add 1 to the year in bytes 14-17 and write out all other records as is? So, for this sample file the new output would be 2006000 in bytes 14-20.
If you know of an "easy" way, without writing a program or without "hard coding" the value, please let me know.
You said "file is 400 bytes". Since we only need the sequence number temporarily to check for record number 1, we put it at the end of the record (positions 401-408) and remove it (with IFOUTLEN=400) when we're done with it.