Temporary DS



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Temporary DS

Postby Black_orange » Mon Nov 07, 2011 8:42 pm

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)
Black_orange
 
Posts: 3
Joined: Mon Nov 07, 2011 8:25 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Temporary DS

Postby Robert Sample » Mon Nov 07, 2011 8:58 pm

Section 12.22 of the JCL Reference manual tells you how to define and use temporary data set names.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Temporary DS

Postby Black_orange » Mon Nov 07, 2011 10:00 pm

Thank you!
Black_orange
 
Posts: 3
Joined: Mon Nov 07, 2011 8:25 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Temporary DS

Postby halfteck » Tue Nov 08, 2011 9:26 pm

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)
halfteck
 
Posts: 42
Joined: Tue Nov 08, 2011 8:47 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Temporary DS

Postby dick scherrer » Tue Nov 08, 2011 10:18 pm

Hello,

DISP=SHR should not be used for temporary datasets. . . .

All this does is generate confusion. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post