Difference between revisions of "CALL"

From MidrangeWiki
Jump to: navigation, search
(Exploring "Wanted Pages" for initial stub statements)
 
m (Category Commands)
 
Line 1: Line 1:
 +
[[Category:Commands]]
 
CALL is an operation used in different kinds of [[OS/400]] Programming languages to call a sub-program.   
 
CALL is an operation used in different kinds of [[OS/400]] Programming languages to call a sub-program.   
  

Latest revision as of 10:07, 24 June 2005

CALL is an operation used in different kinds of OS/400 Programming languages to call a sub-program.

Normally when the sub-program has completed, control is returned to wherever it was called from. The process of calling can send some parameters to the called program, which can also return information to the parent.

We have to be careful ... what is passed is a string of characters so the layout of the data being sent needs to match what is to be received.

  • A CLP program can CALL another CLP program or an RPG program.
  • An RPG program can CALL another RPG program or a program.