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

Difference between KEEP and UNCATLG in DISP


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Superior Member


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

PostPosted: Fri Mar 21, 2008 11:57 am
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
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
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: 792
Location: Chennai, India

PostPosted: Fri Mar 21, 2008 3:29 pm
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: 792
Location: Chennai, India

PostPosted: Fri Mar 21, 2008 3:33 pm
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
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
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Mar 24, 2008 1:23 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts What is the difference between Taskty... Compuware & Other Tools 2
No new posts Difference between VALIDPROC and CHEC... DB2 3
No new posts Difference between CEE3250C and CEE3204S COBOL Programming 2
Search our Forums:

Back to Top