View previous topic :: View next topic
|
Author |
Message |
rohanthengal
Active User
Joined: 19 Mar 2009 Posts: 206 Location: Globe, India
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
What would you want the disposition of that dataset to be if that job step failed? |
|
Back to top |
|
|
rohanthengal
Active User
Joined: 19 Mar 2009 Posts: 206 Location: Globe, India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
oh Robert - will I get a T-shirt ever! |
|
Back to top |
|
|
rohanthengal
Active User
Joined: 19 Mar 2009 Posts: 206 Location: Globe, India
|
|
|
|
understood... alright guys... got it... u all r right !!!
Thanks a tonn. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Anuj -- we think too much alike! |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
rohanthengal -
Good reply. Let us know what you find. You are taking a major step toward ownership. |
|
Back to top |
|
|
Peter Nancollis
New User
Joined: 15 Mar 2011 Posts: 47 Location: UK
|
|
|
|
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 |
|
|
|