With in these three which one is the default one Call
Reference, Call By Value, Call By Content.-Which one is
default?
Answers were Sorted based on User's Feedback
Answer / shilpa
we can call the subprogram by refarence or content, but
call by refarence is default.
call by refarence: when we are passing the value from
mainprogram to subprogram if any changes in subprogram it
reflect also in main program but in call by content if any
changes in subprogram it wont reflect on mainprogram.
we can call the subprogram by dynamically or statically.in
this scenario the default is static call. in dynamic call
we call the program by value. in static call we call the
program by literal.
first we understand the main difference between static call
and dynamic call.
if any changes in subprogam in static call it will reflect
in msin program so we can recompile the mainprogram again
but not in dynamic. if we want to change any call program
just change the program name no neeed to change again and
again.dynamic call is faster compared to static call.
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / asmara
Call By Reference is the default one.
1) Call By Reference passes the field to the called program
(sub-program). Any changes to the fields is done in the
calling program.Both will occupy same memory space.
2)Call By Content passes a copy of the fields to the called
program(sub-program). Any changes will not affect the
fields in the calling program(Main Program).
3)Call By Value refers to the address of the value (sent by
the calling program) & any change made here will be
reflected in the calling program. In these Both the Actual
and Dummy Parameters are occupy different memory space.
We will called as Formal Parameters in COBOL and where in
PL/I we called it as Dummy parameters.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sreeram
refer ans 2
In addition to the above, there is no diff b/w call by
value and call by content - both are same
| Is This Answer Correct ? | 1 Yes | 2 No |
Whats the difference between search & search ALL?
What is the difference between binary search and sequential search?
select TURE Statement(s) aboUt eject statemenet in cobol? a)The eject statememnt must be the only statement on the line b.It causes the program to edit abnormally c. eject statement can be written in either area A or area B d. specifies that the next source statement is to be printed at Top of the next page e.The EJECTstatement has no effect on the compilation of the source program itself
What should be the sorting order for SEARCH ALL?
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
for an INITIALIZE and what keyword allows for an override of the default.
01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
what is the coding difference between COBOL and CICS.
Can the OCCURS clause be at the 01 level?
What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?