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

Answers were Sorted based on User's Feedback



The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mo..

Answer / gayathri

Records will get appended to the file at the last.

Is This Answer Correct ?    19 Yes 2 No

The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mo..

Answer / mujahid

Hi

If Deposition parameter is SHR and file is opened in extend
mode then SHR will consider as MOD then sure records will
get appended.

Is This Answer Correct ?    16 Yes 2 No

The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mo..

Answer / himanshu kumar

agree

Is This Answer Correct ?    10 Yes 1 No

The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mo..

Answer / gowri

If Deposition parameter is SHR and file is opened in extend
mode,then records will get appended

Is This Answer Correct ?    8 Yes 1 No

The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mo..

Answer / 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

The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mo..

Answer / iswarya

If a disp parm is SHR, then the file will be allocated to the job only at the step where the file is being used.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

In a program, there are 2 sections defined say SECTION-A and SECTION-B. There is a paragraph say CALC-INT in both the sections. If this para has to be called directly for SECTION-A, then PERFORM CALC-INT will not work as it is present in both sections. How the PERFORM statement has to be coded here?

5 Answers  


01 text-data pic x(100). move 'xyzdbfrjjg u' to text-data. how to find the value of last index of text-data?

3 Answers   Mind Tree,


Write a program that uses move corresponding.

0 Answers  


SIGN TRAILING SEPARATE field occupy ?

3 Answers  


what happens if we wont give timestamp in precompilation process ?

4 Answers   Covansys,






What guidelines should be followed to write a structured cobol prgm?

0 Answers  


Have you used comp and comp-3 in your project? And how?

0 Answers   IBM,


Extract only those records from a PS file which are having word 'TEXT' in the records using COBOL? The word TEXT is not present in a particular position in all the records.

2 Answers   RBS,


wht is the difference between goto and perform stmts

7 Answers   DELL,


Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?

1 Answers  


Write a program to explain size error.

0 Answers  


what is srange and nosrange pls reply to ths question ?

2 Answers   L&T,


Categories