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
 
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: 8597
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: 45
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: 45
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: 2285
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: 10364
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: 967
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: 967
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: 445
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
This topic is locked: you cannot edit posts or make replies. Selecting two copybooks of different ... Vignesh Sid COBOL Programming 8 Tue Sep 05, 2017 7:28 pm
No new posts Default FTP options vasanthz All Other Mainframe Topics 2 Fri Aug 25, 2017 5:58 am
No new posts Default Message in Rexx cvnlynn CLIST & REXX 9 Wed Aug 02, 2017 12:38 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm

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