MOD, DELETE; What does a disposition of (,DELETE) mean ?
Answer Posted / 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 |
Post New Answer View All Answers
What are the 2 types of parameters in dd statement?
how would you create a temporary dataset? And where will you use them?
Explain how can the submitting users racf authority be overridden in a job stream?
What are some jcl statements that are not allowed in procedures?
What is the difference between the positional and keyword parameters? Give examples.
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
Is acct parameter mandatory?
Why include statement is used in a jcl?
How can an in-stream dataset be terminated?
Explain the function of the dd dcb keyword?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
How can a stopped job be started again?
what is DSN in JCL and what are the parameters to declare the DSN?
Explain the jcl exec statement?