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

What does it indicate DISP=(,,KEEP)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bsng_surru

New User


Joined: 07 Mar 2005
Posts: 16

PostPosted: Thu Apr 07, 2005 10:22 pm
Reply with quote

what does it indicate ?
disp=(,,keep)
disp=(,keep)
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Apr 07, 2005 11:22 pm
Reply with quote

What does the manual say:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2B650/12.19?DT=20040712170508

The format is DISP=(status,normal-termination,abnormal-termination)

Quote:

If you omit the status parameter, the default is NEW.

If you omit the normal-termination parameter, the default is DELETE for a NEW dataset or KEEP for an existing dataset.

If you omit the abnormal-termination parameter, the default is the same as specified for the normal-termination parameter.

If you omit DISP altogether, the default is NEW,DELETE,DELETE.


In your case:

DISP=(,,KEEP) is the same as DISP=(NEW,DELETE,KEEP)
DISP=(,KEEP) is the same as DISP=(NEW,KEEP,KEEP)
Back to top
View user's profile Send private message
bsng_surru

New User


Joined: 07 Mar 2005
Posts: 16

PostPosted: Fri Apr 08, 2005 6:25 pm
Reply with quote

superk,
wow thanks for your clear explanation.
Back to top
View user's profile Send private message
rajesh.sadhanala

New User


Joined: 24 Feb 2005
Posts: 5
Location: India

PostPosted: Sat May 07, 2005 12:31 pm
Reply with quote

according to me it shud be disp = old,keep,keep. pls correct if i am wrong.
Back to top
View user's profile Send private message
gnagakishore

New User


Joined: 26 Mar 2005
Posts: 25
Location: Hyderabad

PostPosted: Sat May 07, 2005 9:47 pm
Reply with quote

rajesh is correct;;;;

it must be disp = (old, keep, keep)
Back to top
View user's profile Send private message
brain_s390

New User


Joined: 06 May 2005
Posts: 58
Location: Mumbai

PostPosted: Sat May 07, 2005 10:06 pm
Reply with quote

Just additional information for KEEP parameter:

We need to supply volume serial no. VOL=SER=ABCD when we need to access file that had disposition of KEEP !
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue May 10, 2005 3:32 pm
Reply with quote

SUPERK is correct...

By Default Values would be like...

DISP=(,,KEEP) DISP=(NEW,DELETE,KEEP)
DISP=(,KEEP) DISP=(NEW,KEEP,KEEP)

Regards,

Priyesh.
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Tue May 10, 2005 8:06 pm
Reply with quote

Quote:
what does it indicate ?
disp=(,,keep)
disp=(,keep)


Yes Superk is Right.It depends on the first parameter.

If status is New then it is New delete keep for disp=(,,keep)
Old then Old delete keep

New,keep,delete
Old,keep,Delete For disp=(,keep)


Correct if i am wrong

Thanks
CHandra
Back to top
View user's profile Send private message
rajesh.sadhanala

New User


Joined: 24 Feb 2005
Posts: 5
Location: India

PostPosted: Tue May 10, 2005 8:09 pm
Reply with quote

Hi..

I am not sure even, I want some to confirm that Disp = (New, Delete, Delete) is correct one. Could anyone please come up with explanation and cover it up.

There is no doubt the default one is New but is it any chance it can be old for keep for normal or abnormal termination
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue May 10, 2005 10:25 pm
Reply with quote

Hey Buddy,

Quote:
I want some to confirm


No need any body to confirm... Create a test step & try it out...

Regards,

Priyesh.
Back to top
View user's profile Send private message
ajay_dheepak

New User


Joined: 12 May 2005
Posts: 32
Location: Chennai

PostPosted: Wed May 18, 2005 2:11 pm
Reply with quote

It is New,Delete,Keep.

Ref: 12.23.2 Defaults

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.

If you omit the DISP parameter, the default is a NEW data set with a disposition of DELETE for both normal and abnormal termination disposition. Thus, you can omit the DISP parameter for a data set that is created and deleted during a step.
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 ISPF 3.4 edit of a ps file, disp use... TSO/ISPF 3
No new posts Updating a VSAM file with DISP=OLD JCL & VSAM 8
No new posts DISP=(SHR,PASS) performance opinion JCL & VSAM 1
No new posts Question about DISP=MOD JCL & VSAM 3
No new posts DISP parameters JCL & VSAM 8
Search our Forums:

Back to Top