View previous topic :: View next topic
|
Author |
Message |
vch
New User
Joined: 01 Feb 2008 Posts: 22 Location: chennai
|
|
|
|
Hi,
Can anyone tell me what is the difference between KEEP and UNCATLG in DISP keyword in JCL |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
the_gautam
Active User
Joined: 05 Jun 2005 Posts: 165 Location: Bangalore
|
|
|
|
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 |
|
|
vch
New User
Joined: 01 Feb 2008 Posts: 22 Location: chennai
|
|
|
|
how will you access UNCATLG data set? |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
Use VOLSER while referring the dataset. |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
and Unit Type on which the dataset resides... |
|
Back to top |
|
|
vch
New User
Joined: 01 Feb 2008 Posts: 22 Location: chennai
|
|
|
|
for KEEP also we are doing like that only, No catalog entry then what is the difference between KEEP and UNCATLG |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
star_dhruv2000
New User
Joined: 03 Nov 2006 Posts: 87 Location: Plymouth, MN USA
|
|
|
|
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!
Thank you. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
UNCATLG: No entry is made in user catalog but an entry is made in system catalog and DS kept on mentioned VOLSER. |
wromg
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 |
|
Back to top |
|
|
vch
New User
Joined: 01 Feb 2008 Posts: 22 Location: chennai
|
|
|
|
Thank you enrico |
|
Back to top |
|
|
|