adspace


The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?

Answer Posted / Wazid Ali Ansari

When DISP=MOD is used in the JCL and the COBOL program opens a file in OUTPUT mode, the existing data in the dataset will be overwritten or lost as this option means that the dataset will be destroyed if it already exists.nnOn the other hand, when DISP=SHR is used and the COBOL program opens a file in EXTEND mode, the dataset will be extended to accommodate new data, preserving any existing data within it.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category