I have two datasets. In one the date(8th-17th position) is populated incorrectly which is anlysed by a different division. I have to make a temp fix by introducing a temp step which uses SORT. In this step i have to copy only the date part from a second dataset(16th-25th position) to the incorrect dataset (8th-17th position) as a temp fix so as stop the job abend. The change is to only reflect in the first row i.e. the header part and that to only the date part. Please suggest some solution.
I see three dates in DAILY1 file and one date in MONDAY2 file. I can't tell from your description or example which date is to be replaced with which other date. Which file is the bad date in? Which file is the good date in? Which of the three dates in the DAILY1 file is the incorrect or correct date?
The positions you mentioned don't help since you didn't use ubb code tags to show the actual positions in your example.
Please show what you expect for output. Please use ubb code tags for your input and output examples to show the actual positions of the fields.
Also, what is the RECFM and LRECL of each input file?