Joined: 01 Feb 2007 Posts: 120 Location: Hyderabad
I need to compare two input files based on date.
In the first file the date will be of PIC X(10) and the date format is YYYY-MM-DD.
And in my second file the date will be of type s9(9) comp-3 and the date format is YYYYMMDD.
Basically the second file will have current business date which will change every day.
I want to compare the current business date from file 2 with field 3(date) of first file and write those records when the date is matching.
Here are my input and output files:
Input File 1 -> FB, LRECL=22
Input File 2 -> FB, LRECL=80