MOD, DELETE; What does a disposition of (,DELETE) mean ?
Answers were Sorted based on User's Feedback
Answer / stu
DISP=(xxx,yyy,zzz) where
xxx=how the file is treated by your program. New=create,
SHR=exists, share with other jobs, OLD=exists, lock it
while the program uses it, MOD=it may exist, but if it
doesn't, create it.
yyy=what to do with the file if the jobstep completes
successfully. CATLG=catalogue a new file, KEEP=keep the
file with any changes made by the program, DELETE=delete it.
zzz=what to do with the program if the jobstep does not
complete successfully. CATLG=catalogue a new file,
KEEP=keep the file with any changes made by the program,
DELETE=delete it.
Example:
DISP=(NEW,CATLG,DELETE) will create a new file, catalgue and
keep it if the jobstep completes OK; otherwise delete it
without cataloging.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / guest
The MOD will cause the dataset to be created (if it does not
exist), and then the two DELETEs will cause the dataset to
be deleted whether the step abends or not. This disposition
is used to clear out a dataset at the beginning of a job.
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / vimal raj
Mod will modify the existing dataset if job runs fine and it
will delete it if job abends or hit with error
| Is This Answer Correct ? | 3 Yes | 4 No |
How do you submit a JCL under CICS environment ?
I have three files for one step i need to override the third file how to do that in jcl?
HOW TO CONVERT VARIABLE BLOCK TO FIXED BLOCK ?
What is the use of the utility DFSRRC00 in the JCL?
Suppose I have five jobs to do. But I want to hold one?
what is the use of temporary files?
what is d/f b/w sysout & sysprint
what is the difference between the JCLLIB and JOBLIB ,and where do we use it ?
What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ?
How do you pass parameters to the program as the job is being executed ?
Ques: How can we code COND parameter in a JCL so that only even steps (or only odd steps) get execute??
Is it possible to left uncode disp?