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 are the different rules for performing sort operation?

766


Write a program that uses move corresponding.

676


what is amode(24), amode(31), rmode(24) and rmode(any)?

705


how to move the records from file to array table. give with code example

2223


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645






How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2734


Write a cobol program making use of the redefine clause.

739


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

426


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3723


In COBOL programming, what is PERFORM? What is VARYING?

672


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

710


What is comp-1 and comp-2?

766


What is the difference between comp and comp-3 usage?

681


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8172


What are the different open modes available in cobol?

722