View previous topic :: View next topic
|
Author |
Message |
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
When using temporary datasets in JCL, what should be the disposition.
CAn we give new or shr or old?? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
pass |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Yes, you can use any of those, and as Dick has added, PASS
What problems are you encountering here ? |
|
Back to top |
|
|
Prabha Warnings : 2 New User
Joined: 05 Dec 2005 Posts: 79
|
|
|
|
Some of our project JCL's are using disp=(new).. So let me know the difference between new and pass. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Prabha,
Go thru the JCL material available in the 'downloads' section of the forum. New & Pass are two diff values. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Bitneuker
CICS Moderator
Joined: 07 Nov 2005 Posts: 1104 Location: The Netherlands at Hole 19
|
|
|
|
I'm a fan of business requirements What about disp=mod? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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. . . |
|
Back to top |
|
|
|