View previous topic :: View next topic
|
Author |
Message |
PavithraC
New User
Joined: 26 Nov 2010 Posts: 1 Location: Chennai
|
|
|
|
What are the Default DISP Parameters ? In what all ways can a default DISP parameter be coded ?
e.g. Want to know if DISP=(NEW,,)
DISP=(,CATLG,DELETE)
DISP=(,KEEP,)
DISP=(,,DELETE) are Valid..
In that case what will be assumed instead of commas in each case?? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
There is a button marked "IBM Manuals" at the top of every page.
Find the JCL manuals and have a good read.
If you want to know what is valid and what is not, I suggest that you try them for yourself and observe the results and post if you have problems. |
|
Back to top |
|
|
nandeshwar
New User
Joined: 11 Oct 2010 Posts: 45 Location: Delhi
|
|
|
|
PavithraC wrote: |
What are the Default DISP Parameters ? In what all ways can a default DISP parameter be coded ?
e.g. Want to know if DISP=(NEW,,)
DISP=(,CATLG,DELETE)
DISP=(,KEEP,)
DISP=(,,DELETE) are Valid..
In that case what will be assumed instead of commas in each case?? |
hi default parameters are listed below:
DISP=(NEW,,) is INVALID
DISP=(,CATLG,DELETE) equals to DISP=(NEW,CATLG,DELETE)
DISP=(,KEEP,) equals to DISP=(NEW,KEEP,KEEP)
DISP=(,,DELETE) equals to DISP=(NEW,CATLG,DELETE)
LET ME KNOW IF I AM WRONG. |
|
Back to top |
|
|
nandeshwar
New User
Joined: 11 Oct 2010 Posts: 45 Location: Delhi
|
|
|
|
Quote: |
There is a button marked "IBM Manuals" at the top of every page |
thanks expat for letting us know these manuals. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
LET ME KNOW IF I AM WRONG |
Dont use CAPS. You got the first one wrong. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
for the mother of all the links to IBM manuals see...
www-03.ibm.com/systems/z/os/zos/bkserv/index.html
and from there You can bookmark all the needed manuals
I have a special manual bookmark folder in my browser, pointing to
the ISPF Bookshelf
the TSO/e Bookshelf
the Assembler and bookshelf
Messages and codes
abend codes
JCL refernce and guide
principles of operation
a few more |
|
Back to top |
|
|
parsesource
New User
Joined: 06 Feb 2006 Posts: 97
|
|
|
|
Arun Raj wrote: |
Quote: |
LET ME KNOW IF I AM WRONG |
Dont use CAPS. You got the first one wrong. |
another error is
DISP=(,,DELETE) equals to DISP=(NEW,CATLG,DELETE)
its NEW,DELETE,DELETE |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1049 Location: Richmond, Virginia
|
|
|
|
I strongly recommend not using default values for at least the first two DISP parms.
Oftentimes one needs to scan JCL looking for where NEW files are allocated, and it is nice to look for "DISP=(NEW" and not also have to remember to look for "DISP=(,".
Standards Standards Standards. |
|
Back to top |
|
|
parsesource
New User
Joined: 06 Feb 2006 Posts: 97
|
|
|
|
Phrzby Phil wrote: |
I strongly recommend not using default values for at least the first two DISP parms.
Oftentimes one needs to scan JCL looking for where NEW files are allocated, and it is nice to look for "DISP=(NEW" and not also have to remember to look for "DISP=(,".
Standards Standards Standards. |
it´s much more complex. No DISP= statement or 'DISP=' without any parameters also defaults to NEW,DELETE,DELETE
also DISP=NEW is possible without brackets
i´ve written a jcl-parser (edit macro). it creates a list of all "not found" datasets, which first-disp-statement is not NEW or MOD. it handles every possible DISP syntax with a few exceptions. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1049 Location: Richmond, Virginia
|
|
|
|
Nice programming to do that, but to repeat: better yet installation enforces standards.
Everyone won't know these nuances. |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 590 Location: London
|
|
|
|
Consider the effects of CA11 if applicable as well. It can be used to delete files at the start of a job and these files are then just created as new files in the JCL.
Also for SMS managed GDS's, if the job abends and a GDS is left in DEFERRED status it will be reused when the job is restarted even though it has (+1) in the JCL. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Pete Wilson wrote: |
Consider the effects of CA11 if applicable as well. It can be used to delete files at the start of a job and these files are then just created as new files in the JCL.
Also for SMS managed GDS's, if the job abends and a GDS is left in DEFERRED status it will be reused when the job is restarted even though it has (+1) in the JCL. |
Yes, I agree when CA11 in-effect, PS and GDS are just differnt animals for "CA11 restart"... - learned it hard way, but why is it so - I'm still searching for the answers. |
|
Back to top |
|
|
|