View previous topic :: View next topic
|
Author |
Message |
sahana.chandan.gupta
New User
Joined: 05 Dec 2007 Posts: 10 Location: Mysore
|
|
|
|
What is the difference between Call By reference, Call by value and call by context? |
|
Back to top |
|
|
VinayCM
New User
Joined: 06 Nov 2007 Posts: 36 Location: Bengaluru
|
|
|
|
It's already discussed several times in the forum.
For your information....... when you use CALL BY REF then address of passing variables is passed, so whatever changes done for the variable in sub program will be get replicated in main program.
when you use CALL BY VALUE only values of the passing variables is passed to sub prog, changes done for variables in sub prog wiil not replicate in main prog. |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi,
Quote: |
Call By reference, Call by value and call by context |
For more information refer the below link.
ibmmainframes.com/post-18828.html
wat about CALL BY CONTEXT?
If it is there anynbody aware of CALL BY CONTEXT, pls give us info.
Quote: |
when you use CALL BY VALUE only values of the passing variables is passed to sub prog |
CALL BY VALUE is not a COBOL VERB, this can be used in the C-language. |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi,
Quote: |
Call By reference, Call by value and call by context |
For more information refer the below link.
ibmmainframes.com/post-18828.html
wat about CALL BY CONTEXT?
If it is there anynbody aware of CALL BY CONTEXT, pls give us info.
Quote: |
when you use CALL BY VALUE only values of the passing variables is passed to sub prog |
CALL BY VALUE is not a COBOL verb, this can be used in the C-Language |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Vasanth,
Quote: |
wat about CALL BY CONTEXT?
If it is there anynbody aware of CALL BY CONTEXT, pls give us info. |
Guess that is a typo. It should be "CONTENT" and not "CONTEXT". |
|
Back to top |
|
|
mohammad saquib
New User
Joined: 16 Nov 2007 Posts: 1 Location: india
|
|
|
|
Is call by value and call by context is same? |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
Back to top |
|
|
|