If you are wanting to do something else, please explain what you are trying to do in more detail.
And please learn how to click the Code button to put code it -- sometimes spaces are critical and the Code button preserves them whereas your paste does not. I changed your post to use Code.
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Hello and welcome to the forum,
Suggest you start over and explain the process.
What is the input to step1? Why are disk1 and disk2 being created? Why do you believe it is proper to create 2 new generations of the same gdg in one step? Why was a decent blksize not used? Why does the "input" to step2 have disp=shr - it can be shared with nothing. . .
If this is just out of curiosity, say so and we may be better able to answer whatever it is you are asking. . . As far as if this is a "real" process, it needs to be re-done.
If you're looking to append the O/P of STEP2 to the O/P of STEP1, in STEP2 use the DSN of the STEP1 O/P as written and change your STEP2 O/P DISP to MOD.
Joined: 16 Apr 2007 Posts: 10 Location: gurgaon - india
As per my understanding you want to use the DISK2 output of STEP1, as the DISK1 input of STEP2. For this use the following code,
//DISK1 DD DSN=STEP1.DISK2,DISP=SHR
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Hello,
Your understanding is incorrect. . .
Suggest you look in the JCL manual (available via the "IBM Manuals" link at the top of the page and run an experiment on your system using the same jcl as was posted here (changing the pgm= and gdg dsns).
Suggest you look in the JCL manual (available via the "IBM Manuals" link at the top of the page and run an experiment on your system using the same jcl as was posted here (changing the pgm= and gdg dsns).
thanks to all,
actually my problem is i have a file which will give two out files i want to use outfile as my input in next step so how can i use using =>refer to previous
step
thanks in advance
Joined: 06 Jun 2008 Posts: 8280 Location: Dubuque, Iowa, USA
Why do you insist that you need refer? If the output data sets are cataloged in the first step, just use DSN=,DISP= on the DD statement in the second step and be done with it. And if the output data sets are generation data groups as your first post indicates, then they will be cataloged. There is a link to manuals at the top of the page; the JCL Language Reference and User's Guide manuals will tell you everything you need to know -- if you spend the time to read them.