The disposition parameter in the jcl is share ( DISP+SHR )
and the program opens file in extend mode what will happen?

Answer Posted / srinivas yadav

If the disp parameter is SHR and that same file is opened
in the extend mode then the file is treated as MOD.
MOD:It is used to append (add) the records.
Ex:Already 10 records are there in a file and i am adding 5
records to that of same file. so, by using disposition
parameter=MOD we can add the records to an already existing
file.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between goback, stop run and exit program in cobol?

1270


I have a File that has duplicate records. I need only those records that occur more than thrice.?

9292


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

2046


how do you reference the esds vsam file formats from cobol programs

914


What is cobol?

976


What are the rules of the move verb?

995


How do u write test cases?

1854


Can we redefine the field of x(200) to less than 200?

1141


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2257


How to remove 2 duplicate records and copy only one using job control language?

1005


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

977


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

2210


What the difference is between continue and next sentence?

905


Define static linking and dynamic linking.

905


When is inspect verb is used in cobol?

955