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
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 |
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 |
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 |
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 |
What is Static and Dynamic linking ?
I hv ten records in ps file and i hv say some 15 records in vsam file .i hv empno and age in ps file n empno,empname,dept n desig in vsam file. i hv 2 read the ps file n check wid matching empno in vsam file and then insert all fields from ps and vsam into db2 table....plz help in writin the procedure division
What is the difference between working storage copybook and linkage section copybook?
if a file has 1000 recods how copy the records from 1 to 100 records using sort
What is sqlca and why is it needed in any cobol-db2 program?
Consider the following COBOL entries: 05 X PIC 99 VALUE 10. SUBTRACT 20 FROM X. The resultant value of X wil be
i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?
I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.
COBOL program to read the string ' BOMBAY' in reverse order as 'YABMOB'
Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.
How to Pass table from a cobol program to another cobol program and how to use that table in called program
given the following piece of code: CALL SUB-PGM USING A, B, C. CALL SUB-PGM USING A, C, C. (a) Both CALL statements will always produce same result. (d) Both CALL statements may produce different result. (c) Compile-time error because SUB-PGM is a dataname. (d) Compile-time error because A, B, C are used twice.