Ummmm - as usual - show us some sample data including the positions, formats and lengths of the two fields, tell us the lrecl and recfm, and show us the expected output. Yes, I know that the output is going to be the same as the input but with both years incremented by one.
Hello again everyone!
Thank you so much for all your advice. It is obvious to me though, that I should have been more precise about my situation.
Here is the file layout of my 57 character length file. The first 2 bytes are the year shown as 11 or 12. I have to put the 11's in one file and the 12's in another. Next year the 12's in one file and 13's in another.
EDIT SYSTC.ADD.EXTRACT.TEST Columns 00001 00057
Command ===> Scroll ===> CSR
****** ***************************** Top of Data 110103054000000303520111105000000045000000000000020120330
Based on the info I received, I tried this SYSIN without good results.
//SYSIN DD *
Thanks again for your patience and understanding
If you need year minus one and current year, does subtracting instead of adding help you for this year?
What you haven't told is is the year with which you want to run the data. If you have 11 and 12 in the data, do you always run with 12? Same situation in future years? I think the subtract should work.
If not, what are the rules for the "current year" when you run?