Joined: 06 Jun 2008 Posts: 8201 Location: Dubuque, Iowa, USA
From the JCL User's Guide (manuals link at the top of the page), with emphasis added by me:
126.96.36.199.5 Passing a Data Set
If more than one step in a job needs the same data set, each DD statement for the data set can pass it to a later step. A data set can be passed only within a job. A data set cannot be passed and received within the same step.
Whatever you are attempting to do, be aware that the IBM manual specifically states you cannot do it. Proceed further at your own (and your data) risk.
IN1 - A control card file which has numeric 6 digit agent codes
IN2 - Add file which needs to be matched against IN1 and unique codes from it will be updated in the same control card file.
OUT1 - Updated IN1
OUT2 - unmatched records from IN2.
This matching is done by SYNCTOOL
Now, I dont want to use a seperate file in OUT1 as that would again be passed to the next step which does a deletion from that file just reverse like above. So I want to update (Add/Delete) in the same file otherwise 2 more REPRO steps needs to be added which i want to avoid.
Was just trying to play around with a TEMP file instead of a CATLGed file when i observed the OLD,PASS thing! Thanks for your help.