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

Exact difference between Call by Reference and Call by value


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shrikanth_m
Currently Banned

New User


Joined: 19 Jan 2007
Posts: 5
Location: bangalore

PostPosted: Sun Jan 21, 2007 11:17 pm
Reply with quote

Please explain me What is the difference between Call the sub-program BY REFERENCE AND CALL VALUE.....

though i read about it in the book, but i couldn't able to understand exactly....

Please some one help me out in this!

Thanks!
Regards
Shrikanth icon_confused.gif
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Jan 21, 2007 11:41 pm
Reply with quote

By reference is the default (and the only way back in the olden days) and means that if the data item is in the calling program's working storage, the called program can alter it directly.
By value means that if the calling program refered to an item in its working storage, the called program ihas access to a duplicate of it, not the actual item.
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 -> Mainframe Interview Questions

 


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 Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts Batch call online program, EXCI task ... CICS 3
Search our Forums:

Back to Top