Page 1 of 1
Temporary DS
Posted:
Mon Nov 07, 2011 8:42 pm
by Black_orange
Hi all!
How to create a temporary data set in the first step and use this in the second step?
Thanks
(Sorry for my grammar if i'm wrong)
Re: Temporary DS
Posted:
Mon Nov 07, 2011 8:58 pm
by Robert Sample
Section 12.22 of the JCL Reference manual tells you how to define and use temporary data set names.
Re: Temporary DS
Posted:
Mon Nov 07, 2011 10:00 pm
by Black_orange
Thank you!
Re: Temporary DS
Posted:
Tue Nov 08, 2011 9:26 pm
by halfteck
Or
//Step1 exec pgm=dfdfdfdfd
//outxxx DD DSN==&&T1,DISP=(,PASS) etc etc
//STEp2 exec pgm=sdsdsdsd
//inxxx DD DSN=&&T1,DISP=SHR or OLD
Key here is the DISP=(,PASS)
Re: Temporary DS
Posted:
Tue Nov 08, 2011 10:18 pm
by dick scherrer
Hello,
DISP=SHR should not be used for temporary datasets. . . .
All this does is generate confusion. . .