What is the difference between CALL BY VALUE and CALL BY
CONTENT?
Answers were Sorted based on User's Feedback
Answer / prakash
both are same, this should be a difference between call by
reference and by value/content.
Here we send the address of he data in first case and the
value/content in second case.
| Is This Answer Correct ? | 17 Yes | 7 No |
Answer / sridevi
Call by value will not return the data back to the calling
program
Call by reference shares the common storage for the
variables used between the calling and called program and
the called program returns the data back to the calling
program through by reference
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / michael
call by reference:
pass pointer to data
call by content:
copy data into temporary, pass pointer to temporary
call by value:
pass data
if the called program is a cobol program the
address of the receiving linkage data item is set to the
passed data value
| Is This Answer Correct ? | 5 Yes | 2 No |
Answer / suputhru
CALL BY VALUE = CALL BY CONTENT both are same.
Here we send the value/content.
CALL BY REFERENCE: we will send the address of he data.
| Is This Answer Correct ? | 2 Yes | 3 No |
Answer / kapil arya
Call By Value, its point to data directly that is why its
faster than the call by reference.
But in Call by Referenc, it points the address of data so
it takes more time in camparison of Call by value.
| Is This Answer Correct ? | 2 Yes | 4 No |
Answer / shashikumar.d
if we can do any modification in forml arguments that
change can't effected actual arguments. this is known as
call by value.
if we can do any modification in forml arguments that
change can effected to actual arguments. this is known as
call by content.
| Is This Answer Correct ? | 15 Yes | 18 No |
Can we use redefine clause in occurs clause?
The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
What COBOL construct is the COBOL II EVALUATE meant to replace?
What type of Call you would use if you don;t want the control back to the calling program?
what is rediffine clause?in what situation it can use?give me real time example?
i have mainprogram and subgram...if i compile mainprogram without stop run..what will u get in compilation time?
There are two flat files one having 10 records and other having 5 records. write a cobol pgm to find the duplicate records(matching records)from both files.
I have a PS file and I would like to manually insert the binary values (like a COMP format) into the file. How can i do that? the way do in COMP-3 format.. suppose i want to insert -12345 in to file in comp-3 format. simply we can open a file in edit mode and do HEX-ON and insert the value . SEE BELOW-- 135 24D in 3 bytes - this will be COMP-3 presenatation of -12345.
What is IMPACT analysis?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the difference between Structured COBOL Programming and Object Oriented COBOL ?