Joined: 26 Apr 2004 Posts: 4650 Location: Raleigh, NC, USA
Nirmal, work it out logically, and keep in mind the workflow from the JCL library through the Internal Reader and into the JES sub-system for processing.
As you know, a step must execute either a program or a procedure. So STEP2 has to do something. My suggestion is to use two different steps, based on the return-code of STEP1, which would use the proper dataset as needed: