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

what happens if we wont give timestamp in precompilation process ?

4 Answers   Covansys,


if one main program ,n -subprograms are then which call you follow ?why reasonuhg

4 Answers   UHG,


Explain fixed length record in cobol? with suitable example

1 Answers   IBM,


What is the difference between Global and External Variables?

0 Answers  


Consider the following code: 77 A PIC 99V99 VALUE 55.35 77 B PIC 99V999 VALUE 32.754 ADD B TO A ON SIZE ERROR DISPLAY "ERROR!!!" What will be the result ? (a) A=88.10, B=32.754 (b) A=87.00 B=32.754 (c) A=87.10 B=32.754 (d) ERROR!!! will be DISPLAYed on the screen.

3 Answers   TCS,


I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.

3 Answers   IBM,


There are two flat files one having 10 records and other having 5 records. write a cobol pgm to find the duplicate records(matching records)from both files.

1 Answers   Mind Tree,


I had 100 records and i want to execute last three records by using cobol programming?what will be coding?

4 Answers   IBM,


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

1 Answers   Syntel,


If we use GO BACK instead of STOP RUN in cobol?

2 Answers   Temenos,


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

0 Answers   Amdocs,


Can we dynamically increase the size of occurs clause? i.e In case I an not sure of the size of array and want to increase the size at run time.If yes , how?

1 Answers  


Categories