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

Dataset Disposition Question


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
YOGESH KAPADIYA
Currently Banned

New User


Joined: 06 Jul 2007
Posts: 6
Location: AHMEDABAD

PostPosted: Sat Jul 07, 2007 5:00 pm
Reply with quote

IF I SPECIFY DISP=(NEW,CATLOG) then dataset will be created and also cataloged. But I want to know We don't specify KEEP in DISP Parameter then will it keep record or catalog entry only?
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Jul 07, 2007 9:05 pm
Reply with quote

Please feel free to try this out and report back on the results.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Sat Jul 07, 2007 9:06 pm
Reply with quote

u r ques is not that clear but here goes the answer as per my understanding of the ques !

when u specify CATLG the dataset wud be catalogued

when u specify KEEP the dataset will be kept and not catalogued ! There wont be an entry in the catalog !
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jul 07, 2007 10:38 pm
Reply with quote

Try disp=(old,pass).
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: Sun Jul 08, 2007 7:45 am
Reply with quote

Hello,

You do not want to use NEW,KEEP when creating a dasd dataset. You typically do not want to use that even for a tape file (one exception being when you are writing on media that is not part of your inventory - say to mail back to another processing center).

Many sites have standards or a "reader exit" that will not permit the use of NEW,KEEP for dasd datasets. While JCL may permit this, it is best to know that you might get this to run, but it is not a good way to implement.
Back to top
View user's profile Send private message
YOGESH KAPADIYA
Currently Banned

New User


Joined: 06 Jul 2007
Posts: 6
Location: AHMEDABAD

PostPosted: Sun Jul 08, 2007 9:04 am
Reply with quote

I am asking that if I specify DISP=(NEW,CATLOG,DELETE) then that dataset will reside on DASD or there will be put only catalog entry?
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: Sun Jul 08, 2007 9:40 am
Reply with quote

Hello,

If you specify (NEW,CATLG,DELETE) for a dasd dataset, the dataset will be created on disk and an entry will be made in the catalog.

Your follow-up post does not really match your initial post.
Quote:
IF I SPECIFY DISP=(NEW,CATLOG) then dataset will be created and also cataloged. But I want to know We don't specify KEEP in DISP Parameter then will it keep record or catalog entry only?


When posting a question, care needs to be taken to ensure that what you want to ask is clear to those who read your post.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sun Jul 08, 2007 11:24 am
Reply with quote

dick scherrer wrote:
Hello,

If you specify (NEW,CATLG,DELETE) for a dasd dataset, the dataset will be created on disk and an entry will be made in the catalog.

Your follow-up post does not really match your initial post.
Quote:
IF I SPECIFY DISP=(NEW,CATLOG) then dataset will be created and also cataloged. But I want to know We don't specify KEEP in DISP Parameter then will it keep record or catalog entry only?


When posting a question, care needs to be taken to ensure that what you want to ask is clear to those who read your post.


You need to look at the JCL manual, the second disposition is what to do with the dataset if the step completes normally, the third is what to do with the dataset if the step abends. A disposition CATALG means the dataset will be cataloged and the data will be kept.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Mon Jul 09, 2007 1:18 am
Reply with quote

In 1969 I looked stuff like these fundemental basics up in manuals. Don't they exist anymore icon_eek.gif
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Jul 09, 2007 7:14 am
Reply with quote

Bitneuker wrote:
In 1969 I looked stuff like these fundemental basics up in manuals. Don't they exist anymore icon_eek.gif


Which fundemental basics or manuals? Looking things up in the manual takes at least some knowledge which in many case seems to be lacking.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Mon Jul 09, 2007 4:46 pm
Reply with quote

In the top menue one can read the manuals about JCL. In this case TS knows his question is about DISP so it's just a matter of searching for DISP in the manual.
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top