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
 

 

Regarding third attribute of DISP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rohanthengal

Active User


Joined: 19 Mar 2009
Posts: 176
Location: Pune, Maharashtra, India

PostPosted: Thu Mar 31, 2011 4:54 pm    Post subject: Regarding third attribute of DISP
Reply with quote

if i provide DISP=(NEW,CATLG,____) then what would be the value in the third attribute ?
Would it be CATLG same as of 2nd attribute or DELETE as first attribute is NEW ?
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Mar 31, 2011 4:57 pm    Post subject: Reply to: Regarding third attribute of DISP
Reply with quote

What would you want the disposition of that dataset to be if that job step failed?
Back to top
View user's profile Send private message
rohanthengal

Active User


Joined: 19 Mar 2009
Posts: 176
Location: Pune, Maharashtra, India

PostPosted: Thu Mar 31, 2011 5:03 pm    Post subject:
Reply with quote

i want it to let it be DEFAULT if i omit the abnormal disposition i.e. third attribute. I want to know whether it is depending upon normal disposition !
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7905
Location: Bellevue, IA

PostPosted: Thu Mar 31, 2011 5:14 pm    Post subject:
Reply with quote

There is a link to manuals at the top of the page. The JCL Language Reference manual says
Quote:
12.19.3 Defaults



If you omit the status subparameter, the default is NEW.

If you omit the normal termination disposition subparameter, the default is DELETE for a NEW data set or KEEP for an existing data set.

If you omit the abnormal termination disposition subparameter, the default is the disposition specified or implied by the second subparameter. However, if the second subparameter specified PASS, the default abnormal termination disposition is DELETE for a NEW data set or KEEP for an existing data set.

If you omit the DISP parameter, the default is a NEW data set with a disposition of DELETE for both normal and abnormal termination disposition. Thus, you can omit the DISP parameter for a data set that is created and deleted during a step.
Why are you not looking this up yourself?
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


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

PostPosted: Thu Mar 31, 2011 5:14 pm    Post subject:
Reply with quote

And the JCL manuals neglect to mention this? After 50 years of JCL?

And this cannot be tested in 5 minutes?

Do you want to learn how it works, or just try to remember what someone else (who might be equally lazy and just guessing) said about how it works?

Wow!
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Thu Mar 31, 2011 5:21 pm    Post subject:
Reply with quote

Only if you could look at the JCL Referecne Manual:
Quote:
Syntax:

{DISP=status}
{DISP=({status}{,normal-termination-disp}{,abend-disp})

Defaults

- If you omit the status subparameter, the default is NEW.

- If you omit the normal termination disposition subparameter, the default is DELETE for a NEW data set or KEEP for an existing data set.

- If you omit the abnormal termination disposition subparameter, the default is the disposition specified or implied by the second subparameter. However, if the second subparameter specified PASS, the default abnormal termination disposition is DELETE for a NEW data set or KEEP for an existing data set

- If you omit the DISP parameter, the default is a NEW data set with a disposition of DELETE for both normal and abnormal termination disposition. Thus, you can omit the DISP parameter for a data set that is created and deleted during a step.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Thu Mar 31, 2011 5:22 pm    Post subject:
Reply with quote

oh Robert icon_redface.gif - will I get a T-shirt ever!
Back to top
View user's profile Send private message
rohanthengal

Active User


Joined: 19 Mar 2009
Posts: 176
Location: Pune, Maharashtra, India

PostPosted: Thu Mar 31, 2011 5:24 pm    Post subject:
Reply with quote

understood... alright guys... got it... u all r right !!!

Thanks a tonn.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7905
Location: Bellevue, IA

PostPosted: Thu Mar 31, 2011 6:00 pm    Post subject:
Reply with quote

Anuj -- we think too much alike! icon_biggrin.gif
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


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

PostPosted: Thu Mar 31, 2011 8:16 pm    Post subject:
Reply with quote

rohanthengal -

Good reply. Let us know what you find. You are taking a major step toward ownership.
Back to top
View user's profile Send private message
Peter Nancollis

New User


Joined: 15 Mar 2011
Posts: 47
Location: UK

PostPosted: Fri Apr 01, 2011 4:40 am    Post subject:
Reply with quote

Defaults are good-ish ... me if I can control I will ( yeah the cost of therapy is crippling )

Job runs and fails - new file is a) scratched or b) cataloed ????
If its an App producing a report a) is good
If its DB2 reorg a) is bad

JCL is dumb ... it's down to you to make things happen - defaults are for the lazy (or dim!)
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 CALL MACRO EXECUTE FORM - Setting the... sudarshan.srivathsav PL/I & Assembler 7 Tue Feb 09, 2016 10:32 pm
No new posts DISP=(SHR,PASS) performance opinion steve-myers JCL & VSAM 1 Wed Dec 02, 2015 11:53 pm
No new posts Question about DISP=MOD harifsheik JCL & VSAM 3 Tue Jun 16, 2015 2:39 pm
No new posts DISP parameters spoorni JCL & VSAM 8 Tue Jul 22, 2014 3:42 am
No new posts SAS - Temp dataset with DISP=MOD vasanthz All Other Mainframe Topics 3 Tue Jun 24, 2014 2:00 am


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