Joined: 10 Jun 2005 Posts: 11 Location: Jacksonville
I want to reolve all the string fields YYYYMMDD inside a file with todays date. (or DATE1-1. ie yesterday)
YYYYMMDD may occur many times in the input file and may not be in the same column.
Sample Input file.
I need this card to be generic so that I can have a similar card to replace YYYYMMDD with yesterdays date and so on.. (Like DATE1-1 or DATE1-2 etc. ) Because my job will be running on week ends and need to process monday to Friday files. ie, for monday file I need to replace YYYYMMDD with today - 5 days and so on assuming my job will run on saturday.
This statement makes no sense. If you have DFSORT, then you have DFSORT Symbols.
You could use a set of IFTHEN statements to do this. How many depends on the last position in which YYYYMMDD can be found in any record. It's not clear if the example records you show are the actual records or if the actual records can have a YYYYMMDD further out in the record.