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 statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
what is use of dcb parameter in dd statement?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
how you will the direct the data to spool using sysout option?
When space is allocated for an output dataset, what units can be used?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
what happens in execution stage in job processing?
is there any way to execute more than one proc in the same exec statement at the same time..?
What are hierarchy levels in jcl?
what is use of space parameter in dd statement?
what is the use of JCL?
Must tape dataset definitions include vol=ser specifications?
What is the purpose of dd * statement in jcl?
which utility is used to run a cobol-db2 program?
How gdg are concatenated?