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

Which storage devices are grouped under DASD and SYSDA ?

1 Answers   IBM,


Which COND paramter will u use to execute the step only if the previous step does not execute

3 Answers   BoA, HSBC,


How to test thru JCL if any file(PS or VSAM) is empty or not. I do not want to use any COBOL prog or Ezytrieve and want to do using utility.

10 Answers   Lehman Brothers,


How can a jobs execution priority be modified?

0 Answers  


How to get cursor position from system in CICS environment ?

8 Answers  






What do you know about jcl?

0 Answers  


What parameter of the job statement is used to limit the cpu time consumed by the job?

0 Answers  


When we give TYPERUN = SCAN , what are the syntax errors we get?

5 Answers   Kanbay,


My requirement is : How to populate a empty PS/flat file with ONLY spaces in the first line. You should not use any input dataset to do this. I'm not sure whether you may use any utility for this purpose?

2 Answers   HCL,


i have 1000 records in input file and i want to sort it and the first 200 records to be placed in output file. how to do that??

14 Answers   L&T,


How to overide the symbol parameter in the jcl ?

3 Answers   UST,


What is the use of the utility DFSRRC00 in the JCL?

2 Answers   Convergys,


Categories