View previous topic :: View next topic
|
Author |
Message |
vaibhavjadhav
New User
Joined: 27 Jul 2007 Posts: 33 Location: mumbai
|
|
|
|
i am creating a dataset which is already created without DISP parameter.
what error will JCL throw in context with this. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Vaibhav,
Quote: |
what error will JCL throw in context with this |
Why dont you try rather than waiting for our replies?
PS: If you cannot implmemnt because of some reason, this is discussed earlier (in JCL forum).... why dont you search there? |
|
Back to top |
|
|
ksk
Active User
Joined: 08 Jun 2006 Posts: 355 Location: New York
|
|
|
|
Default disposition is NEW,DELETE,DELETE. So, if you didn't specify DISP parameter, it should be deleted in both normal and abnormal cases.
If you create again, it shouldn't give any JCL error related to DISP parameter.
if u didn't get answer with this reply, ask in detail what exactly u want.
KSK |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
...continued with ksk's reply..consider this definition of DISP
DISP=(status, normal-termination-disp, abnormal-termination-disp)
Defaults of DISP are:
- 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.
Hope this helps. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If you have jcl that creates one or more files without a DISP= parameter, you should fix this jcl. Any time a file is to be created, the jcl should specify what should happen on a sucessful and an abended execution.
To do otherwise, it not a good proctice with the exception of datasets like sortwk. |
|
Back to top |
|
|
|