IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Default DISP Parameters ?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
PavithraC

New User


Joined: 26 Nov 2010
Posts: 1
Location: Chennai

PostPosted: Wed Dec 01, 2010 12:25 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8796
Location: Welsh Wales

PostPosted: Wed Dec 01, 2010 12:27 pm
Reply with quote

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
View user's profile Send private message
nandeshwar

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Wed Dec 01, 2010 1:16 pm
Reply with quote

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
View user's profile Send private message
nandeshwar

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Wed Dec 01, 2010 1:17 pm
Reply with quote

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
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Dec 01, 2010 1:44 pm
Reply with quote

Quote:
LET ME KNOW IF I AM WRONG
Dont use CAPS. You got the first one wrong.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Wed Dec 01, 2010 7:28 pm
Reply with quote

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
View user's profile Send private message
parsesource

New User


Joined: 06 Feb 2006
Posts: 97

PostPosted: Sun Dec 05, 2010 10:49 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1049
Location: Richmond, Virginia

PostPosted: Mon Dec 06, 2010 6:29 pm
Reply with quote

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
View user's profile Send private message
parsesource

New User


Joined: 06 Feb 2006
Posts: 97

PostPosted: Mon Dec 06, 2010 7:04 pm
Reply with quote

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
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1049
Location: Richmond, Virginia

PostPosted: Mon Dec 06, 2010 7:14 pm
Reply with quote

Nice programming to do that, but to repeat: better yet installation enforces standards.

Everyone won't know these nuances.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 590
Location: London

PostPosted: Tue Dec 07, 2010 5:00 pm
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6248
Location: Mumbai, India

PostPosted: Tue Dec 07, 2010 6:46 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Starting a PROC with parameters from ... CLIST & REXX 6
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts Change Default Scroll Setting TSO/ISPF 1
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
Search our Forums:

Back to Top