Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

What does it indicate DISP=(,,KEEP)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: What does it indicate DISP=(,,KEEP)
Reply with quote

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

superk

Moderator Team Head


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

PostPosted: Thu Apr 07, 2005 11:22 pm    Post subject: Re: What does it indicate DISP=(,,KEEP)
Reply with quote

What does the manual say:

http://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    Post subject: Re: What does it indicate DISP=(,,KEEP)
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    Post subject: Re: What does it indicate DISP=(,,KEEP)
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    Post subject:
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    Post subject: Re: What does it indicate DISP=(,,KEEP)
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: 1452
Location: Chicago, IL

PostPosted: Tue May 10, 2005 3:32 pm    Post subject: Re: What does it indicate DISP=(,,KEEP)
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    Post subject:
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    Post subject: Re: What does it indicate DISP=(,,KEEP)
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: 1452
Location: Chicago, IL

PostPosted: Tue May 10, 2005 10:25 pm    Post subject: Re: What does it indicate DISP=(,,KEEP)
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    Post subject:
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    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 Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts DISP=(SHR,PASS) performance opinion steve-myers JCL & VSAM 1 Wed Dec 02, 2015 11:53 pm
No new posts Question about DISP=MOD harifsheik JCL & VSAM 3 Tue Jun 16, 2015 2:39 pm
No new posts DISP parameters spoorni JCL & VSAM 8 Tue Jul 22, 2014 3:42 am
No new posts SAS - Temp dataset with DISP=MOD vasanthz All Other Mainframe Topics 3 Tue Jun 24, 2014 2:00 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us