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

Answers were Sorted based on User's Feedback



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

Answer / patrick santiago

mod, = adding/altering data to dataset
delete, = delete DS after normal eoj
delete = delete DS if abend occurs

Is This Answer Correct ?    17 Yes 1 No

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

Answer / wairagade

Sometimes in job, datasets needs to be deleted as per
application requirements but we are not sure that the
dataset is been cataloged or not . so the first step will
be using IEFBR14 utility mentioned those datasets which
needs to be deleted with DISP mentioned in Q . If the
dataset is not cataloged then system will cataloged it
first and delete it . It will avoid JCL error. Your
thoughts on this!!

Is This Answer Correct ?    15 Yes 0 No

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

Answer / geetanjali

DISP=(MOD,DELETE,DELETE)

The current status of the dataset is MOD i.e. Append data to the file if it already exists and create new if it dosen't.

On normal disposition i.e. successful execution of job the dataset is deleted.

On Abnormal disposition i.e. in case of job abend, the dataset is deleted.

Is This Answer Correct ?    12 Yes 1 No

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

Answer / dhanumjaya

in this case if the dataset already exist then it will
delete,otherwise the dataset first created and after deleted

Is This Answer Correct ?    6 Yes 0 No

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

Answer / snehatechm

dataset will not be created since under normal or abnormal
condition the datset will be deleted

Is This Answer Correct ?    8 Yes 3 No

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

Answer / shivanadri naveen kumar

if the data set is available means it is already exist the data set is used in that step and it is deleted whether the job step is normal or abnormal execution of the step...

Is This Answer Correct ?    7 Yes 2 No

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

Answer / bhaskar r

Data modified and deleted.

Is This Answer Correct ?    4 Yes 2 No

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

Answer / r.bhaskar

If data is modified successfully data will be deleted
abnormal also it will delete.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More JCL Interview Questions

Suppose I have Five Steps in PROC In this Case I want to Execute third Step in PROC using Main JCL don't use any COND Explain with Coding Thanks & Regards SHREE

4 Answers   Merrill Lynch,


What is the use of ikjeft1b utility in jcl?

1 Answers  


a jcl has 2 steps. How to code the jcl such that if step1 abends, then step2 runs. Else, job terminates with step1?

1 Answers   IBM,


what is the difference between static call and dynamic call?

1 Answers  


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

0 Answers   IBM,






a job have 5 steps and it will executes a proc which have 5steps in it. now i have to execute step3 only when step2 of proc executes successfully

3 Answers  


What is the purpose of dd dummy statement?

0 Answers  


if we have a job consist of two steps and each step calling a proc having 10 steps each then how many steps are counted only 2 or 22(10+10+1+1)? can we have more than 255 steps in a single job?

5 Answers   Accenture,


The maximum number of steps in a job?

4 Answers  


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

0 Answers  


What is COND=EVEN ?

9 Answers   IBM,


proc1,proc2,up to proc5 is there if i want to call proc1 and proc5how can u write the code

2 Answers  


Categories