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

what the output will be if i dont code DISP parameter in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1436
Location: Bangalore,India

PostPosted: Mon Oct 22, 2007 1:35 pm
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
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

Superior Member


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

PostPosted: Mon Oct 22, 2007 4:13 pm
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

Moderator Emeritus


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

PostPosted: Mon Oct 22, 2007 7:33 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top