Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

DISP field for temporary dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Thu Jan 24, 2008 5:15 pm    Post subject: DISP field for temporary dataset
Reply with quote

When using temporary datasets in JCL, what should be the disposition.
CAn we give new or shr or old??
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Thu Jan 24, 2008 5:16 pm    Post subject:
Reply with quote

pass
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Jan 24, 2008 5:23 pm    Post subject:
Reply with quote

Yes, you can use any of those, and as Dick has added, PASS

What problems are you encountering here ?
Back to top
View user's profile Send private message
Prabha
Warnings : 2

New User


Joined: 05 Dec 2005
Posts: 79

PostPosted: Thu Jan 24, 2008 5:45 pm    Post subject: Reply to: DISP field for temporary dataset
Reply with quote

Some of our project JCL's are using disp=(new).. So let me know the difference between new and pass.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Thu Jan 24, 2008 6:36 pm    Post subject:
Reply with quote

Prabha,

Go thru the JCL material available in the 'downloads' section of the forum. New & Pass are two diff values.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jan 24, 2008 11:02 pm    Post subject:
Reply with quote

Hello,

Use NEW for the first positional parameter of DISP.

Use PASS for the second potitional parameter of DISP.

And i prefer DELETE for the third positional DISP parameter when creating a temporary dataset.

Code:
//TEMPDATA DD DSN=&&TMPSTUF,DISP=(NEW,PASS,DELETE),etc
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Sat Jan 26, 2008 1:29 am    Post subject:
Reply with quote

I'm a fan of business requirements icon_wink.gif What about disp=mod?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Jan 26, 2008 1:58 am    Post subject:
Reply with quote

Hello,

For my $.02, there are a couple of good places to use MOD.

One is to append data. Another is to ensure a "housekeeping" step does not fail.

I've seen a few situations where unexpected/invalid results happened due to unintentionally appending to an existing file (one that was not supposed to exist).

Again, not a rule, just a preference. . . icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us