Calling a User Written Routine

Additional 3GL Reference Examples contains reference examples primarily centered on writing and compiling a MTHNAME routine (a number-to-name lookup example) in a number of 3GL languages. Here are three simple ways to call the function:

The compiled and linked user written routine must reside in one of the following locations: the user directory under EDACONF, the location pointed to by the IBICPG environmental variable, or in an app directory. The z/OS and IBM i environments are limited to routine name lengths that are respectively 8 and 10 characters due to platform limitations. The limits for other platforms are generally much higher, but still must live within the limits of the operating system.

The GENCPGM build tool is generally used to build the routines. See Additional 3GL Reference Examples for reference examples.


iWay Software