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 if any ,is the syntax error in the following piece of code 01 B PIC A(7) 02 C PIC 9(4) ........ IF(B NUMERIC) ADD 10 TO C a.the condition in the if statement is wrong b.noting is wrong c.because C is initialised.ADD 10 TO C is wrong d.both B and C shoud have same size.
What is the difference b/w the CLASS,TIME,PRTY in jcl job card.
Can a job have only steplib and no joblib ?
WHAT WILL HAPPEN TO A FILE IF DISP=(MOD,DELETE,DELETE)
I have DATE filed like DD-MM-YYYY, So I want output should be MM/DD/YYYY using JCL? Can anybody post the answer for above requirement?
4 Answers BirlaSoft, FIS, Wipro,
If the COND parameter is specified in both the JOB and EXEC statements, which one will take precedence? If JOB takes priority and if all the conditions evaluate to false, then will the conditions on the EXEC step be evaluated next?
what is a cataloged procedure ?
//{name} INCLUDE MEMBER=memname {comments} in the include statement, what actually happens when its executed? The membername conatains a list of valid JCL statements, so will the include statement be substituted by these statements and how can we mention the pds that conatains the member? How does the include group differ from a PROC? how is include statement connected to JOBLIB and STEPLIB?
When concatenating two PDS can any one PDS can have empty dataset i.e without any value(Dummy).
In a single step if input file is present then only need to copy into output file or else need to through a RC is it possible. Note : i want it in a single step
suppose i have 10 job steps and i want to execute only step 6.How to write?
A STEP has more than 1 file as INPUT. And we have to put all these records int 1 output file. How to do ? //InputF DD DSN=ID.File1 DSN=ID.File2 DSN=ID.File3