Explain call by context by comparing it to other calls.
Answer / mahathiaz
The parameters passed in a call by context are protected
from modification by the called program. In a normal call
they are able to be modified
| Is This Answer Correct ? | 2 Yes | 4 No |
What is the difference between NEXT SENTENCE and CONTINUE?
what is the meaning of pic 9(09)v99-
I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am not closing the cursor used in the Sub-program? Please advise..
01rec1. 05 a pic 999v99 value 123.12 05 b pic 99v9 value 45.9 02 rec2. 05 x pic 999v99 05 y pic 99v99 05 z pic x(3) value 'abc' if rec1 is moved to rec2 then what is the value of rec2?
should I use Go back in the main program ? Yes we can use Go back in main program as well.
The disposition parameter in the jcl is share ( DISP+SHR ) and the program opens file in extend mode what will happen?
How do you code Cobol to access a parameter that has been defined in JCL?
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?
How do u sort the table for Search ALL? Is it only using ASCENDING KEY IS statement in occurs clause? If the data is input in non ascending order, will the ASC KEY IS automatically sort the data? or will it throw compile time error?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
a pic s9(4) comp b pic s9(4) comp-3 c ???????????????? d ???????????????? move a to c add a+B giving d. what is ur declaration for c,d?
What is file status 39 ?