You can use the CALL, CALLPRC, and RETURN commands to pass control back and forth between programs and procedures. Each command has slightly different characteristics. Information may be passed to called programs and procedures as parameters when control is passed.
Special attention should be given to programs created with USRPRF(*OWNER)
that run CALL or CALLPRC commands. Security characteristics of these
commands differ when they are processed in programs running under an
owner's user profile. See the Security - Reference
book for more information about user profiles.
This chapter includes General-Use Programming Interfaces (GUPI), made available by IBM for use in customer-written programs.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.