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 |
What are the different types of condition in cobol and write their forms.
suppose a cobol programme A calling programme B,C and D. If C undergoes some change what if A,B,C,D need to be recompiled or only C nee to be recompliled.
What is COMP-1? COMP-2?
Under which scenario you would go for a static call as opposed to dynamic call?
What is the meaning of 'TALLING' verb in cobol?
01 MOVE 10 TO N 05 PERFOM PARA1 TIMES STOP RUN WAT WILL HAPPEN?? WILL IT RUN INFINITELY OR AN ERROR WIL BE THER BECAUSE NO OF TIMES IS NOT GIVEN??
What is mean by maxcc
We are using the searching a table which is indexed, once the key is found, how can we get the occurance at which the key was found.
without performing any operations on a file how can i know whether it contains data or not
What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES
what are the error codes in cobol, db2, cics, vsam , and jcl
I have a field with data type X(10). I want to perform arithmetic operation on this field? I tried doing it by moving the value into a numeric field. but it didn't work out. I am getting a S0C7 abend. Pls let me know if there is any way of getting this done?