What is "Call by content" and "call by reference"?

Answers were Sorted based on User's Feedback



What is "Call by content" and "call by reference"?..

Answer / sruthi

Call by reference means address of var is passed to sub pgm.
The modifications on the passed vars in sub pgm will be
effected in main pgm.
call by content means value of the var is passed to sub pgm.
The modifications on the passed vars in sub pgm will not be
effected in main pgm. that is local to sub pgm.

Is This Answer Correct ?    47 Yes 2 No

What is "Call by content" and "call by reference"?..

Answer / santy

'Call by Content' means value of the variable is passed to
the subprogram and after modification on this variable in
sub-program will not effected in main program.

'Call by Address' is opposite to above. Here address of the
variable is pass to the sub-program at the time of call and
modification on this passed variable in sub-prog will be
effected in main program.

Is This Answer Correct ?    12 Yes 2 No

What is "Call by content" and "call by reference"?..

Answer / shiva

call by reference passes address of variable to the subprogram
and any changes to this variable will affect the main program

this is bcoz they have allocated the same memory..

whereas in call by content the value of the variable is
passed to the subprogram and any changes to that variable
does not affect the main pprogram..this is bcoz they have
allocated seperate memories.......

Is This Answer Correct ?    6 Yes 0 No

What is "Call by content" and "call by reference"?..

Answer / siri

CALL BY CONTENT CALL BY VALUE
---------------- ------------------
*CALL 'SUB1' BY USING CONTENT *CALL 'SUB1' BY USING REFERE
WS-VAR1 NCE WS-VAR2
*ITS NEED TO BE CODE PASS AN *ITS NO NEED TO CODE PASS AD
ELEMENT BY VALUE. DRESS ON THE VARIABLE.
*THE SUBPROGRAMS MODIFICATIONS *THE SUB PROGRAM MODIFICATIO
ON THE PASSED ELEMENTS ARE NOT NS ON THE PASSED ELEMENTS
VISIBLE IN THE MAIN PROGRAM. ARE VISIBLE IN THE MAIN PRO
GRAM.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

plz,could any one tell me? what about EBCDIC in cobol?briefly?

1 Answers  


wht is load module and object module ?

2 Answers   DELL, TCS,


Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a

3 Answers   TCS,


How can we know that cobol program is using report file or simple file....?

4 Answers  


hi dudes.....can any one help me..... what is SET TO TRUE all about,anyway?

1 Answers  






In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?

1 Answers   CSC,


HOw can I get the negative sign while deduct high value from low value

0 Answers  


there is a file whose ORGANISATION is INDEXED.you want to read the records from the file in RANDOM fashion as well as sequentially.then which of the access mode would you specify? a.SEQUENTIAL b.RANDOM c.DYNAMIC D.ACCESS MODE has nothing to do with it

3 Answers   TCS,


I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.

9 Answers  


Why do we use COMP-3 variables for computation, when we know that they are non displayable fields and require additional MOVE to numeric field before we populate it in output Reports?

1 Answers   Accenture,


Can a Search can be done on a table with or without Index?

0 Answers  


I have two sequential files, FILE-1 and FILE-2. FILE-1 contains 2 columns(A,B) and FILE-2 contains 3 columns (C,D,E).I want an output file, FILE-3 which has all five columns with duplicates eliminated from column A.

3 Answers  


Categories