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 |
What happens if both JOBLIB & STEPLIB is specified ?
What is a Dummy Utility and what it does ?
please could u tell me the difference between SORT, SYNCSORT,CA-SORT, DFSORT,
Explain how can a stopped job be started again?
How can return codes be tested before execution of a job step?
How can a stopped job be started again?
I have 3 duplicate records in a file . I want to eliminate 1st, 2nd and copy 3rd one only . HOW ?
How dummy is used in jcl?
Differentiate between addressing mode and run mode.
What is a GDG
What do you understand by the terms: joblib and steplib?
Why do you use a control card?