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: 356
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 it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Hardcoded negative sign value in output scdinesh SYNCSORT 8 Fri Sep 08, 2017 5:28 am
No new posts Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm

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