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

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?

1805


Discuss about changing dataset name in proc.

759


) what is the difference between AID and HANDLE AID?

1635


What is the default value(s) for an initialize and what keyword allows for an override of the default?

695


What are different data types in cobol?

689






what is the difference between COBOL2 AND COBOL390?

2453


What is the LINKAGE SECTION used in COBOL?

889


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

716


What is Pic 9v99 Indicates in COBOL?

726


What are the pertinent COBOL commands?

2623


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1931


What type of SDLC u followed? Why?

1519


Can a Search can be done on a table with or without Index?

802


what is difference between cobol and cobol/400

21562


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

700