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
 

 

What is the different between a catlg and a keep disposition

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
madlui56
Currently Banned

New User


Joined: 08 Aug 2006
Posts: 61
Location: Philippines

PostPosted: Thu Jun 14, 2007 7:06 am    Post subject: What is the different between a catlg and a keep disposition
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

Site Director


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

PostPosted: Thu Jun 14, 2007 7:38 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Jun 14, 2007 12:23 pm    Post subject:
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

Active Member


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

PostPosted: Thu Jun 14, 2007 6:21 pm    Post subject:
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    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 Dynalloc a DSN NEW,CATLG,DELETE in PL... PeterHolland PL/I & Assembler 14 Tue Jun 05, 2012 3:04 am
No new posts BPXWDYN DISP=(NEW,CATLG,KEEP) - can ... dcshnier COBOL Programming 5 Thu May 24, 2012 6:42 am
No new posts NEW,CATLG,DELETE run for the first ti... jennybrahma JCL & VSAM 14 Thu Mar 18, 2010 4:22 pm
No new posts UCC11 deletes file with disp = (mod,c... obulisankar CA Products 3 Mon Sep 08, 2008 6:54 pm
No new posts What is Disposition when we do XDC ag... Gnanas N TSO/ISPF 9 Fri Mar 07, 2008 10:16 pm


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