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

Regarding third attribute of DISP


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

Active User


Joined: 19 Mar 2009
Posts: 206
Location: Globe, India

PostPosted: Thu Mar 31, 2011 4:54 pm
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

Global Moderator


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

PostPosted: Thu Mar 31, 2011 4:57 pm
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: 206
Location: Globe, India

PostPosted: Thu Mar 31, 2011 5:03 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Mar 31, 2011 5:14 pm
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

Senior Member


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

PostPosted: Thu Mar 31, 2011 5:14 pm
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

Superior Member


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

PostPosted: Thu Mar 31, 2011 5:21 pm
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

Superior Member


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

PostPosted: Thu Mar 31, 2011 5:22 pm
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: 206
Location: Globe, India

PostPosted: Thu Mar 31, 2011 5:24 pm
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: 8697
Location: Dubuque, Iowa, USA

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

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

Senior Member


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

PostPosted: Thu Mar 31, 2011 8:16 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts ISPF 3.4 edit of a ps file, disp use... TSO/ISPF 3
No new posts XML Generate with Attribute & Ele... COBOL Programming 5
No new posts Updating a VSAM file with DISP=OLD JCL & VSAM 8
No new posts CALL MACRO EXECUTE FORM - Setting the... PL/I & Assembler 7
No new posts DISP=(SHR,PASS) performance opinion JCL & VSAM 1
Search our Forums:

Back to Top