Hi,
My interviewer ask A calls B and C calls B, a and b are
static c and b are dynamic.what happens if they compile and
execute at same time.
Answers were Sorted based on User's Feedback
Answer / venu
in static call we cannot comile the main program without
compiling the subprg(B), you can get the error that is
object not found.
in dynamic call we can compile the main program without
compilation of subprg(B), but while executing the prg then
u can get the abend i.e, load not found that means s806.
| Is This Answer Correct ? | 13 Yes | 2 No |
Answer / vssd
Declaring B as RENT (Re ENTranat) would be of use.
This takes care of allocation of memory for variable usage
of Program B - thus allowing copies of B to be executed
parallely.
Hope this helps, please correct me if wrong.
| Is This Answer Correct ? | 4 Yes | 1 No |
What is diff between vsam and db2?what is advantage of db2 over vsam?which is best suited one?
I have a source program compiled with Cobol-2. The output file has a record length of 100 defined in the program but a record of 60 bytes getting written into it. i.e. The rest of 40 bytes I am not Writing anything. But it by default puts some values into the last 40 bytes. However it does not impact anything. But when Compiled the module with Enterprise Cobol the last 40 bytes were spaces as fillers. Can anyone explain?
How can we know that cobol program is using report file or simple file....?
How can you add a particular field/coloumn in copybook?
which one is better among static call and dynamic call?
How do you define a variable of comp-1 and comp-2?
wht is the difference between goto and perform stmts
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.
what is the difference between Plan & package
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.
can we display comp-3 variables. if we want to display what we have to do . give me one example
how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?