MOD, DELETE; What does a disposition of (,DELETE) mean ?

Answers were Sorted based on User's Feedback



MOD, DELETE; What does a disposition of (,DELETE) mean ?..

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

MOD, DELETE; What does a disposition of (,DELETE) mean ?..

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

MOD, DELETE; What does a disposition of (,DELETE) mean ?..

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

Post New Answer

More JCL Interview Questions

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.

1 Answers  


What is the difference b/w the CLASS,TIME,PRTY in jcl job card.

4 Answers   Syntel,


Can a job have only steplib and no joblib ?

6 Answers  


WHAT WILL HAPPEN TO A FILE IF DISP=(MOD,DELETE,DELETE)

8 Answers   ADP,


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?

4 Answers   Wipro,


what is a cataloged procedure ?

1 Answers   Xansa,


//{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?

2 Answers   CCS, CTS,


When concatenating two PDS can any one PDS can have empty dataset i.e without any value(Dummy).

2 Answers  


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

1 Answers  


suppose i have 10 job steps and i want to execute only step 6.How to write?

6 Answers  


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

1 Answers   FIS,


Categories