I found a job using ICEGENER to copy 2 files into a single file. In this process it uses 1 input file itself as the output file in DISP =SHR.
Could someone explain why the job doesnot give a JCL error in this case.
Also the job gives different output if i change the order of files in input
Joined: 03 Oct 2009 Posts: 1786 Location: Bloomington, IL
As to your first question, why would you expect a JCL error? Contemplate the nature of ENQs.
As to your second question, your "sample" JCL (which, of course, could never actually run) is completely unlike what you describe. Re-read it, understand what you actually posted, and you will understand what is happening.
Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
Well, it's been said before:
You SHOULD NOT use the same data set for SORTIN and SORTOUT for a COPY for the reason that we are doing parallel read/write. Depending on how the data is arranged, you may get away with it, but you're taking a risk. We can't guarantee that you won't lose records. So just don't do it.