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
 

 

Diffrence between KEEP,CATLG and DELETE with example.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Diffrence between KEEP,CATLG and DELETE with example.
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: 680
Location: NJ

PostPosted: Thu Dec 22, 2005 3:21 pm    Post subject: DISP
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    Post subject: Re: Diffrence between KEEP,CATLG and DELETE with example.
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: 680
Location: NJ

PostPosted: Thu Dec 22, 2005 4:39 pm    Post subject: Query
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    Post subject: Re: Query
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    Post subject: Re: Diffrence between KEEP,CATLG and DELETE with example.
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: 680
Location: NJ

PostPosted: Thu Dec 22, 2005 4:49 pm    Post subject: KEEP
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: 680
Location: NJ

PostPosted: Thu Dec 22, 2005 4:54 pm    Post subject: KEEP
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    Post subject: Re: Diffrence between KEEP,CATLG and DELETE with example.
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: 680
Location: NJ

PostPosted: Thu Dec 22, 2005 5:33 pm    Post subject: KEEP
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    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 JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm
No new posts Delete VSAM File Records amitc23 CICS 6 Sun Apr 10, 2016 10:10 am
No new posts DB2 Stored Procedure - Dynamic SQL - ... GuyC DB2 2 Wed Feb 17, 2016 5:10 pm


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