Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Default DISP Parameters ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Default DISP Parameters ?
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: 8593
Location: Back in jolly old England

PostPosted: Wed Dec 01, 2010 12:27 pm    Post subject:
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: 44
Location: Delhi

PostPosted: Wed Dec 01, 2010 1:16 pm    Post subject: Re: Default DISP Parameters ?
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: 44
Location: Delhi

PostPosted: Wed Dec 01, 2010 1:17 pm    Post subject:
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: 2165
Location: @my desk

PostPosted: Wed Dec 01, 2010 1:44 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Wed Dec 01, 2010 7:28 pm    Post subject: Reply to: Default DISP Parameters ?
Reply with quote

for the mother of all the links to IBM manuals see...
http://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    Post subject:
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

Active Member


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

PostPosted: Mon Dec 06, 2010 6:29 pm    Post subject:
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    Post subject:
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

Active Member


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

PostPosted: Mon Dec 06, 2010 7:14 pm    Post subject:
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 User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Tue Dec 07, 2010 5:00 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Dec 07, 2010 6:46 pm    Post subject:
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    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 CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Multiple parameters Csongor All Other Mainframe Topics 16 Thu Jun 09, 2016 7:54 pm
No new posts SYSUT2 - CONFLICTING DCB PARAMETERS raulravi7 JCL & VSAM 6 Thu May 19, 2016 9:43 am
No new posts force windows ftp client user to defa... meykh2014 All Other Mainframe Topics 0 Sun Feb 14, 2016 12:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us