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: 8679
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 Question about dataset sequence numbe... harisukumaran JCL & VSAM 23 Tue May 29, 2018 9:31 am
No new posts Temp dataset unusual behavior sheersh JCL & VSAM 5 Tue May 08, 2018 9:52 pm
No new posts How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am

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