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?
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)
Joined: 23 Nov 2006 Posts: 19244 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.
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.