IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Call By reference, Call by value and call by context


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sahana.chandan.gupta

New User


Joined: 05 Dec 2007
Posts: 10
Location: Mysore

PostPosted: Thu Dec 06, 2007 11:37 am
Reply with quote

What is the difference between Call By reference, Call by value and call by context?
Back to top
View user's profile Send private message
VinayCM

New User


Joined: 06 Nov 2007
Posts: 36
Location: Bengaluru

PostPosted: Thu Dec 06, 2007 11:47 am
Reply with quote

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
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Thu Dec 06, 2007 11:59 am
Reply with quote

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
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Thu Dec 06, 2007 12:03 pm
Reply with quote

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
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Dec 06, 2007 12:17 pm
Reply with quote

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
View user's profile Send private message
mohammad saquib

New User


Joined: 16 Nov 2007
Posts: 1
Location: india

PostPosted: Thu Dec 06, 2007 5:57 pm
Reply with quote

Is call by value and call by context is same?
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Dec 06, 2007 6:26 pm
Reply with quote

saquaib,


Welcome to the forums. The call statements are expalined well in the manual. Check the following link.

http://publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.entcobol3.doc/tpshr03.htm
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Batch call online program, EXCI task ... CICS 3
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
No new posts Reference for COND parameter. JCL & VSAM 1
Search our Forums:

Back to Top