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
 
what the output will be if i dont code DISP parameter in JCL

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

New User


Joined: 27 Jul 2007
Posts: 33
Location: mumbai

PostPosted: Mon Oct 22, 2007 1:24 pm    Post subject: what the output will be if i dont code DISP parameter in JCL
Reply with quote

i am creating a dataset which is already created without DISP parameter.
what error will JCL throw in context with this.
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Mon Oct 22, 2007 1:35 pm    Post subject:
Reply with quote

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
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Mon Oct 22, 2007 1:47 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Mon Oct 22, 2007 4:13 pm    Post subject:
Reply with quote

...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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Oct 22, 2007 7:33 pm    Post subject:
Reply with quote

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
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 Formating output file Niki DFSORT/ICETOOL 3 Fri Jun 15, 2018 3:27 pm
No new posts Dynamically updating the MQ monitorin... Anilkumarmq Java & MQSeries 0 Fri Jun 08, 2018 2:05 pm
No new posts What will happen if we dont code STOP... Poha Eater COBOL Programming 4 Mon Jun 04, 2018 5:27 pm
No new posts Reformat clause in joinkeys sortcard ... Mounika Nemani DFSORT/ICETOOL 2 Thu May 31, 2018 5:35 pm
No new posts JCL to set Return code when Time Out ... vinu78 JCL & VSAM 6 Wed May 30, 2018 11:27 am

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