What is the difference between Disp=MOD and Disp=OLD
Can someone please explain the difference between Disp=Mod and Disp=old
Both the options gives us status of the data-set ie dataset is already existed. In MOD is used to append the record at end and OLD is used while updated dataset with exclusive control over the dataset.
Yes, MOD can be used to append, but it can also be used to create a new file.
Your info is incomplete at best.
MOD is a perfectly good choice for certain requirements.
If you want to append to existing data, MOD will allow this.
If you have housekeeping JCL that terminates with FILE NOT FOUND, MOD may be able to prevent this. If MOD is used, a new file will be created if it does not exist. An existing file will be used when it already exists.
Suggest everyone in this topic read about MOD in the JCL Reference Manual.