Previous Topic: Global Variables

Next Topic: Compiler Directives

External Subroutines

External subroutines are IMODs that are called as subroutines or invoked as functions by other IMODs. Parameters are passed and returned according to the rules of REXX. You can nest any combination of external subroutines or functions up to 50 levels at a single GoalNet node.

Important! To be called as an external subroutine, an IMOD must contain the compiler directive #CALLABLE.

You can use the $WHEREFROM() function to identify the IMOD and statement number that made the external subroutine call.