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

In COBOL, what is the different between index and subscript?

967


what is the use of outrecord?

1976


What is the default value(s) for an initialize? What keyword will allow for an override of the default?

881


How many sections are there in data division in COBOL?

913


example for sub strings ? and refernce modifications whit output pls

2088


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

9257


How do you reference the following file formats from cobol programs?

933


How do we get current date from system with century in COBOL?

1080


Write down the divisions of cobol program?

859


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2152


For rewrite, why is it mandatory that file needs to be opened?

852


What are the pertinent COBOL commands?

2841


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

979


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

929


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

892