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 |
Explain about LMINIT - generate a data ID for a data set
i want apply mainframe devolper with 3+ but i dont have that much of knowledge what isthe solution to get that much of knoweldge?
In order to continue a job after a return code of 12 in step1, what the step2 exec statement include?
How to copy VSAM files without using REPRO
how to put a dependency on job in jcl using opc scheduler?
Explain the function of job statement in jcl?
If we have 100 job steps in JCL and we want to excute steps only starting from 43 to 50, then how it can be coded in JCL/
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
How many instream we can write in single jcl?
hi guys what r the diff types of procs in jcl? bye ramya
4 Answers ACS, Keane India Ltd,
i have a file which contains duplicates ? my requirement is to eliminate duplicates and these elminated duplicates should be moved to another file can any code this using sort ?
What is the difference between sb37,se37,sd37 each?