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
 

 

When DISP=(NEW,CATLG,CATLG) is used?

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

New User


Joined: 30 Nov 2006
Posts: 33
Location: MUMBAI

PostPosted: Tue Dec 05, 2006 5:08 pm    Post subject: When DISP=(NEW,CATLG,CATLG) is used?
Reply with quote

hI fRIENDS,

in which CASES DISP=(NEW,CATLG,CATLG) IS USED ?

in which CASES DISP=(OLD,DELETE,DELETE) IS USED ?

I KNOW MEANING OF ABOVE THAT IS ON NORMAL TERMINATION OR ON UBNORMAL CONDITION WHAT TO DO? BUT I WANT TO IN WHICH PARTICULAR SITUATION I HAVE TO USE ABOVE SYNTAX?

ALSO WHAT IS DIFF BETWEEN
DISP=(OLD,KEEP,KEEP) & DISP=(OLD,CATLG.CATLG)

I WANT TO IN WHICH PARTICULAR SITUATION I HAVE TO USE ABOVE SYNTAX?
Back to top
View user's profile Send private message

kgumraj

Active User


Joined: 01 May 2006
Posts: 151
Location: Hyderabad

PostPosted: Tue Dec 05, 2006 7:01 pm    Post subject: Re: in which CASES DISP=(NEW,CATLG,CATLG) IS USED ?
Reply with quote

Hello,

VIKAS GAIKWAD wrote:
hI fRIENDS,

in which CASES DISP=(NEW,CATLG,CATLG) IS USED ?


This is used when we are creating a new PDS and the records prossced are more.
If any abend occurs that will stop at the record of abend. then we have the option to process the record from the last record in previous case. Usually we should use GDG for this

VIKAS GAIKWAD wrote:

in which CASES DISP=(OLD,DELETE,DELETE) IS USED ?


If the file need to be deleted
Say
STEP1 : new file created
STEP2: new file is processed into another file say some sort
STEP3: No need of first file so we need to delete it so use this option


VIKAS GAIKWAD wrote:


ALSO WHAT IS DIFF BETWEEN
DISP=(OLD,KEEP,KEEP) & DISP=(OLD,CATLG.CATLG)

I WANT TO IN WHICH PARTICULAR SITUATION I HAVE TO USE ABOVE SYNTAX?


if you want a data set listed in the catlouge table use DISP=(OLD,KEEP,KEEP) else use DISP=(OLD,CATLG.CATLG)
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: Wed Dec 06, 2006 4:26 am    Post subject:
Reply with quote

Hello,

From your initial post:
Quote:
in which CASES DISP=(NEW,CATLG,CATLG) IS USED ?

in which CASES DISP=(OLD,DELETE,DELETE) IS USED ?


DISP=(NEW,CATLG,CATLG) should rarely be used. This tells the system to create a new dataset and catalog it even if the step abends. More often DISP=(NEW,CATLG,DELETE) will be used for new file creation.

DISP=(OLD,DELETE,DELETE) is used for an existing file that is to be deleted regardless of the outcome of the step. If the dataset is needed for a restart or rerun, this would be coded as DISP=(OLD,DELETE,KEEP). If this dataset was created in "this job" and is never retained for future use, the DISP=(OLD,DELETE,DELETE) might be used.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Dec 07, 2006 6:46 am    Post subject:
Reply with quote

I use CTLG,CTLG quite often in testing. It allows you to keep what data has been processed in spite of the abend.

You can review what went right/ what went wrong before disaster struck. icon_lol.gif You get more from each test that way.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu Dec 07, 2006 7:20 am    Post subject:
Reply with quote

Quote:
keep what data has been processed in spite of the abend
Thank you mmwife, my thoughts exactally! icon_biggrin.gif
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 Dec 07, 2006 8:18 am    Post subject:
Reply with quote

Hello,

My bad. . . or at least incomplete.

I should have said "used rarely in production".
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Dec 09, 2006 9:12 am    Post subject:
Reply with quote

Sorry Dick. I should have mentioned that you were absolutely correct for the prod environment, but for testing blah, blah, blah.
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: Sun Dec 10, 2006 2:57 am    Post subject:
Reply with quote

Hi Jack,

Thanx for the follow-up post.

I might have been more complete the first go. . . .
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Tue Dec 12, 2006 4:07 am    Post subject: Re: in which CASES DISP=(NEW,CATLG,CATLG) IS USED ?
Reply with quote

One valid reason for using (NEW,CATLG,CATLG) in production, and we use it a lot, is if the program you are running has checkpoint/restart in it. If your program has committed updates to the databases, you're going to need the data already written to the output files. You cannot simply re-run the program to rer-create the output.

Dave
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 Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts DISP=(SHR,PASS) performance opinion steve-myers JCL & VSAM 1 Wed Dec 02, 2015 11:53 pm
No new posts Question about DISP=MOD harifsheik JCL & VSAM 3 Tue Jun 16, 2015 2:39 pm
No new posts DISP parameters spoorni JCL & VSAM 8 Tue Jul 22, 2014 3:42 am
No new posts SAS - Temp dataset with DISP=MOD vasanthz All Other Mainframe Topics 3 Tue Jun 24, 2014 2:00 am


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