Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Call By reference, Call by value and call by context

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Call By reference, Call by value and call by context
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    Post subject:
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: 276
Location: Bang,iflex

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

Hi,



Quote:
Call By reference, Call by value and call by context


For more information refer the below link.

http://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: 276
Location: Bang,iflex

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

Hi,



Quote:
Call By reference, Call by value and call by context


For more information refer the below link.

http://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: 1288
Location: Chennai, India

PostPosted: Thu Dec 06, 2007 12:17 pm    Post subject: Reply to: Call By reference, Call by value and call by conte
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    Post subject: hi
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: 1288
Location: Chennai, India

PostPosted: Thu Dec 06, 2007 6:26 pm    Post subject: Reply to: Call By reference, Call by value and call by conte
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts StreamWeaver language reference chetanambi Compuware & Other Tools 1 Wed Jul 05, 2017 12:50 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us