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

What is the different between a catlg and a keep disposition


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

New User


Joined: 08 Aug 2006
Posts: 61
Location: Philippines

PostPosted: Thu Jun 14, 2007 7:06 am
Reply with quote

Is there such thing as disp=(new,keep,keep)

although it did not cause an abend on the job but it entails
a warning message of "disposion may cause unexpected results".

Thanks.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jun 14, 2007 7:38 am
Reply with quote

Hello,

As the message said, using keep on a new dataset may cause unexpected results.

Keep tells the system to neither catalog the dataset nor delete it - something that would rarely be desirable.

Specifying new,keep is prevented in many systems to reduce confusion and reduce unexpected results. One of the worst results of new,keep was that a given dataset might be on several dasd volumes.

One use of new,keep,keep was to write over external tapes that were not part of the local tape management system and were to be mailed somewhere for processing there.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Jun 14, 2007 12:23 pm
Reply with quote

As Dick has said, DFSMS can change ,KEEP to ,CATLG which is better.

I usually set up a sweep job to delete uncatalogued datasets without backup once a week in my SMS environments, as some people uncatalogued their own datasets to stop other people copying their JCL examples.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Thu Jun 14, 2007 6:21 pm
Reply with quote

Actually, KEEPing without cataloguing would allow the same dataset name to be on several volumes, with the same or different contents, depending on what you wrote to them.

In the old days, users/depts might have their own removable packs, so cataloguing was not always important, so long as I knew what I wrote to my pack.

The analogy is that on a network, you can have a file name in your folder that might duplicate a filename I have in my folder, but there is no confusion, for us or the system; we know where we're looking and are authorized to look.

Nowadays, everything should be catalogued, but the IBM system does not require it, as that would be a major change in JCL requirements.
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 Dynalloc a DSN NEW,CATLG,DELETE in PL... PL/I & Assembler 14
No new posts BPXWDYN DISP=(NEW,CATLG,KEEP) - can ... COBOL Programming 5
No new posts NEW,CATLG,DELETE run for the first ti... JCL & VSAM 14
No new posts UCC11 deletes file with disp = (mod,c... CA Products 3
No new posts What is Disposition when we do XDC ag... TSO/ISPF 9
Search our Forums:

Back to Top