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 IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts DUMMY When do I need add a DCB parameter Martylin JCL & VSAM 3 Fri Dec 08, 2017 7:20 am
No new posts Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts Strange Code amitc23 COBOL Programming 6 Tue Nov 28, 2017 11:25 am
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am

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