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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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

Moderator Emeritus


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

PostPosted: Wed Dec 06, 2006 4:26 am
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
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: 3156
Location: Tucson AZ

PostPosted: Thu Dec 07, 2006 7:20 am
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

Moderator Emeritus


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

PostPosted: Thu Dec 07, 2006 8:18 am
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
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

Moderator Emeritus


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

PostPosted: Sun Dec 10, 2006 2:57 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts ISPF 3.4 edit of a ps file, disp use... TSO/ISPF 3
No new posts Updating a VSAM file with DISP=OLD JCL & VSAM 8
No new posts DISP=(SHR,PASS) performance opinion JCL & VSAM 1
No new posts Question about DISP=MOD JCL & VSAM 3
No new posts DISP parameters JCL & VSAM 8
Search our Forums:

Back to Top