WHAT WILL HAPPEN TO A FILE IF DISP=(MOD,DELETE,DELETE)
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
dataset will not be created since under normal or abnormal
condition the datset will be deleted
Is This Answer Correct ? | 8 Yes | 3 No |
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 |
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 |
Can comments be specified at the very beginning of a jobcard? Will the JCL execute?
What are steplib and joblib?
what is the resolution for sb37 error
What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ?
HOw to submit a job from other user id.? for exp some other job name like "t4622sdx".now i want to submit that job from my user id?(we don't know that location at all Just we know job name)
how can i use the parameters decalred in main pgm in sub pgm
I have a File that has duplicate records. I need only those records that occur more than thrice.
What is JCL LIB ?
01 GROSS-PAY 05 BASIC-PAY PIC 9(5) 05 ALLOWENCES PIC 9(3) if BASIC-PAY has a value 1000 and ALLOWENCES has a value of 250,what will be displayed by the statement DISPLAY GROSS-PAY a.1250 b.01000250 c.01250 d.1.250
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.
How to do automated restart when a job abend?
why do we use file-aid wht r the adv of using file-aid thn in ispf