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
 

 

Difference between KEEP and UNCATLG in DISP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vch

New User


Joined: 01 Feb 2008
Posts: 22
Location: chennai

PostPosted: Fri Mar 21, 2008 11:45 am    Post subject: Difference between KEEP and UNCATLG in DISP
Reply with quote

Hi,

Can anyone tell me what is the difference between KEEP and UNCATLG in DISP keyword in JCL
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


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

PostPosted: Fri Mar 21, 2008 11:57 am    Post subject:
Reply with quote

Hi,

Well, two consideration are there, whether steps executes sucessfully or not..

1.Normal Termination Disposition Subparameter:

KEEP:
The data set will be kept on the volume when the step ends normally. KEEP is the only valid termination disposition for a VSAM data set. VSAM files shouldn't be cataloged, uncataloged, passed, or deleted.

UNCATLG:
If the step ends normally, MVS will delete the catalog entry for the data set but will not delete the data set itself.


2. Abend (Conditional) Disposition Subparameter:

KEEP:
The data set will be kept on the volume if the step abends. KEEP is the only valid termination disposition for a VSAM data set. VSAM files shouldn't be cataloged, uncataloged, passed, or deleted.

UNCATLG:
If the step abends, MVS will delete the catalog entry for the data set but will not delete the data set itself.
Back to top
View user's profile Send private message
the_gautam

Active User


Joined: 05 Jun 2005
Posts: 165
Location: Bangalore

PostPosted: Fri Mar 21, 2008 3:02 pm    Post subject:
Reply with quote

KEEP : the dataset will be kept on the volume for the future use but the calatog entry will not be made.

UNCATLG : the dataset will be uncataloged after the termination of the JOB.
Back to top
View user's profile Send private message
vch

New User


Joined: 01 Feb 2008
Posts: 22
Location: chennai

PostPosted: Fri Mar 21, 2008 3:11 pm    Post subject:
Reply with quote

how will you access UNCATLG data set?
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Fri Mar 21, 2008 3:29 pm    Post subject:
Reply with quote

Use VOLSER while referring the dataset.
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Fri Mar 21, 2008 3:33 pm    Post subject:
Reply with quote

and Unit Type on which the dataset resides...
Back to top
View user's profile Send private message
vch

New User


Joined: 01 Feb 2008
Posts: 22
Location: chennai

PostPosted: Fri Mar 21, 2008 3:35 pm    Post subject:
Reply with quote

for KEEP also we are doing like that only, No catalog entry then what is the difference between KEEP and UNCATLG
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Mar 21, 2008 6:10 pm    Post subject:
Reply with quote

Hi VCH,

I think you misunderstood. KEEP does nothing to change the status of the file; uncat deletes the catalog entry and you must thereafter reference it using the volser and unit.
Back to top
View user's profile Send private message
star_dhruv2000

New User


Joined: 03 Nov 2006
Posts: 87
Location: Plymouth, MN USA

PostPosted: Mon Mar 24, 2008 12:49 pm    Post subject:
Reply with quote

Hi all,

Following is my understanding of this issue:

UNCATLG: No entry is made in user catalog but an entry is made in system catalog and DS kept on mentioned VOLSER.

KEEP: No entry is made in either of catalog.


Please correct me.


Cheers! icon_smile.gif
Thank you.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10276
Location: italy

PostPosted: Mon Mar 24, 2008 1:23 pm    Post subject: Reply to: Difference between KEEP and UNCATLG in DISP
Reply with quote

Quote:
UNCATLG: No entry is made in user catalog but an entry is made in system catalog and DS kept on mentioned VOLSER.

wromg icon_biggrin.gif

a little bit of testing never hurt anyone ...
if a dataset is SMS manage must be cataloged, You will get all sort of nasty message otherwise

disp = (NEW.KEEP) if not SMS managed will allocate and later on the dataset must ve accessed using the vol=ser parameter...

disp=(NEW,CATLG) dataset will be allocated and cataloged wherever the catalogl alias structure will dictate

disp=(NEW,UNCATLG), useless/confusing specification, if not SMS managed will allocate and later on the dataset must be accessed using the vol=ser parameter...
but in the job log You will get a ...
IEF287I ENRICO.MF.NEW NOT UNCTLGD 2

disp=(OLD,CATLG) will catalog ( if not cataloged before ) a dataset accessed using the vol=ser

disp=(OLD,KEEP) leaves things as before

disp=(OLD,UNCATLG) will uncatalog the dataset, later on the dataset must be accessed using the vol=ser parameter...

disp=(OLD,DELETE) will delete the dataset and, things become triky now

... if the dataset was cataloged and accessed thru the catalog ( no vol=ser )
the dataset will be uncataloged

... if the dataset was accessed thru the vol=ser specification, no catalog search is involved
and no catalog action will be taken
if the dataset was cataloged it will be left there with a dangling catalog entry

clear enough icon_biggrin.gif
Back to top
View user's profile Send private message
vch

New User


Joined: 01 Feb 2008
Posts: 22
Location: chennai

PostPosted: Tue Mar 25, 2008 3:28 pm    Post subject:
Reply with quote

Thank you enrico
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 Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm
No new posts Difference Between CICS WebSupport an... sachinji84 CICS 1 Mon Mar 07, 2016 7:25 pm


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