Compiling and Storing a Subroutine

In this section:

After you write a subroutine, you need to compile and store it. This topic discusses compiling and storing your subroutine for Windows and z/OS.

Compiling and Storing a Subroutine on z/OS

Compile the subroutine, then link-edit it and store the module in a load library. If your subroutine calls other subroutines, compile and link-edit all the subroutines together in a single module. Do not store the subroutine in the FUSELIB load library (FUSELIB.LOAD), as it may be overwritten when your site installs the next release of WebFOCUS.

If the subroutine is written in PL/I, include the following when link-editing the subroutine

ENTRY subroutine				

where:

subroutine

Is the name of the subroutine.

Compiling and Storing a Subroutine on UNIX

Run the program GENCPGM, which creates a .DLL file. Then check the location of your dynamic link functions library file as specified by the IBICPG environment variable, and save the .DLL file to this location.

Compiling and Storing a Subroutine on Windows

Run the program GENCPGM, which creates a .DLL file. Then check the location of your dynamic link functions library file as specified by the IBICPG environment variable, and save the .DLL file to this location.