|
View previous topic :: View next topic
|
| Author |
Message |
VIKAS GAIKWAD
New User

Joined: 30 Nov 2006 Posts: 33 Location: MUMBAI
|
|
|
|
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 |
|
 |
kgumraj
Active User

Joined: 01 May 2006 Posts: 151 Location: Hyderabad
|
|
|
|
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 |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
mmwife
Super Moderator

Joined: 30 May 2003 Posts: 1592
|
|
|
|
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. You get more from each test that way. |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
| Quote: |
| keep what data has been processed in spite of the abend |
Thank you mmwife, my thoughts exactally!  |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
My bad. . . or at least incomplete.
I should have said "used rarely in production". |
|
| Back to top |
|
 |
mmwife
Super Moderator

Joined: 30 May 2003 Posts: 1592
|
|
|
|
| Sorry Dick. I should have mentioned that you were absolutely correct for the prod environment, but for testing blah, blah, blah. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hi Jack,
Thanx for the follow-up post.
I might have been more complete the first go. . . . |
|
| Back to top |
|
 |
DavidatK
Active Member

Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
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 |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|