Count & Compare record totals in two files - Set RC
Posted: Thu May 05, 2011 2:35 pm
I have two sequential input files (IN01 & IN02) which are both RECFM=FB, LRECL=80.
I want to test if the count of records in file IN02 is greater than that in file IN01. If this is true I want to set RC=0, otherwise I want to set RC=4. Please can you suggest a DFSORT solution to this.
Thanks & Regards, Kevin
I want to test if the count of records in file IN02 is greater than that in file IN01. If this is true I want to set RC=0, otherwise I want to set RC=4. Please can you suggest a DFSORT solution to this.
Thanks & Regards, Kevin