Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6970
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: 8596
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
This topic is locked: you cannot edit posts or make replies. Incrementing current time field by 30... arunsoods DFSORT/ICETOOL 11 Thu Oct 26, 2017 3:22 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us