Selecting either of 2 i/p files using SORT JCL
Posted: Sat Jan 13, 2018 6:01 pm
Hi, I have three input files(IN1, IN2, IN3).
IN1 will have either 'Y' or 'N'
If it is 'Y', I need IN2 to be copied to the sort out file
If it is 'N', I need IN3 to be copied to the sort out file.
Can someone help me out on the logic using SORT JCL?
Note: There should be only one o/p file, i.e. either IN2 or IN3.
IN1 will have either 'Y' or 'N'
If it is 'Y', I need IN2 to be copied to the sort out file
If it is 'N', I need IN3 to be copied to the sort out file.
Can someone help me out on the logic using SORT JCL?
Note: There should be only one o/p file, i.e. either IN2 or IN3.