I have two files, File1 and File2. Each contain one record each.
I have to compare record from File1 and File2 using JCL, and If File1 record is greater that File2 the JCL RETURN code should be 4 else it should be 0.
Compare File1 and File2
If File1 > File2
set RETURN-CODE to 4
set RETURN-CODE to 0
Please help me how to do this using JCL(DFSORT or ICEMAN)