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

Diffrence between KEEP,CATLG and DELETE with example.


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

New User


Joined: 29 Nov 2005
Posts: 49

PostPosted: Thu Dec 22, 2005 3:03 pm
Reply with quote

Hi,

Can any one suggest me what exactly the difference between KEEP,CATLG and DELETE parameters in DISP. Please explain with an example?


Regards,
Suneel.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Thu Dec 22, 2005 3:21 pm
Reply with quote

Hi suneel,
KEEP --> This indicates that the dataset is to be retained or kept upon successful execution of the job. If it is used with a temporary dataset the system automatically changes it to PASS

CATLG --> It is used to specify that the data set is to be retained and recorded in the system catalogs after successfull job termination.

DELETE--> It indicates that the dataset being referenced is to be deleted after successful termination of the job.
If it is specified in tapedata set which has a retention period or exp date subsequent to the current date then it is deleted only after the retention period on the tape..

hope got it...
Back to top
View user's profile Send private message
sunnybunny

New User


Joined: 29 Nov 2005
Posts: 49

PostPosted: Thu Dec 22, 2005 4:21 pm
Reply with quote

HI khamarutheen,

1. For KEEP you are saying that 'the dataset is to be retained or kept'.
May i know where exactly that dataset is kept that means where exactly it stores?

2. May i know what is system catalogs?

Please suggest me.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Thu Dec 22, 2005 4:39 pm
Reply with quote

Hi Sunnubunny,

Quote:
May i know where exactly that dataset is kept that means where exactly it stores?


KEEP means it stores on the system buffer memmory.... and retained laterly

Quote:
May i know what is system catalogs?

System catalogs means for example u take a rack where v store a books in order.. like that system itself stores all the files in the memory in that way.. uncataloged is like book on table and cataloged is like on the rack..
Back to top
View user's profile Send private message
srrao_kilari

New User


Joined: 28 Nov 2005
Posts: 12
Location: New Delhi

PostPosted: Thu Dec 22, 2005 4:47 pm
Reply with quote

khamarutheen wrote:
Hi Sunnubunny,

Quote:
May i know where exactly that dataset is kept that means where exactly it stores?


KEEP means it stores on the system buffer memmory.... and retained laterly



For Keep, next time if u want to access the dataset, it has to accessed by volume serial number, not by name.
Back to top
View user's profile Send private message
sunnybunny

New User


Joined: 29 Nov 2005
Posts: 49

PostPosted: Thu Dec 22, 2005 4:48 pm
Reply with quote

Hi khamarutheen,

Thanks for ur reply.

still i have doubt in KEEP. You are saying that if we use KEEP for a particular dataset that will be stored in system buffer memory. Say for example iam creating one dataset with (NEW,KEEP,DELETE) and job has successfully terminated.

That means the dataset is created with KEEP. So now my question is 'Is it possible to access same dataset from some other job? If so is it enough to give DISP as OLD or SHR in next job?'
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Thu Dec 22, 2005 4:49 pm
Reply with quote

Hi srrao_kilari,
Yes u r right.. to retain the dataset which is kept previouly is done by the VOL No.. only.. fine i left in my post. thanks ..
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Thu Dec 22, 2005 4:54 pm
Reply with quote

Hi sunnybunny,
Quote:

(NEW,KEEP,DELETE) and job has successfully terminated. That means the dataset is created with KEEP


If successfull it will keep else it will delete.. b clear in that..

Quote:
'Is it possible to access same dataset from some other job?

YES

Quote:
If so is it enough to give DISP as OLD or SHR in next job?'


Since it is not cataloged u can use OLD with VOL parameter..
SHR allows for multiple jobs to read the same data set. so it's up to u to choose either OLD or SHR...
Back to top
View user's profile Send private message
sunnybunny

New User


Joined: 29 Nov 2005
Posts: 49

PostPosted: Thu Dec 22, 2005 5:02 pm
Reply with quote

Hi,

Now i got the difference. I have one more doubt.

Suppose i created a dataset with CATLG, later i uncataloged same dataset with UNCATLG. So it mean that the data in the dataset is not deleted. So how to view that data in that dataset?
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Thu Dec 22, 2005 5:33 pm
Reply with quote

Hi sunnybunny,

So u wanna to know
Quote:
how to view that data in that dataset?


It can be viewed by providing the right VOL and SERIAL no..
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 DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
No new posts volume mass delete RMM JCL & VSAM 2
Search our Forums:

Back to Top