Compiling User Exits

Compiling a user exit program results in a COBOL shell (.cbl) in the application source directory, and the executable object code being created in the usrobj directory. The COBOL shell is built from the procedure description (PD) and working storage (WS) program segments created in the application source directory. For example, compiling the program segments for the program GL40M described in Creating a User Exit Routine results in the following files:

$LAWDIR/productline/glsrc/GL40M.cbl

$LAWDIR/productline/usrobj/GL40M.gnt

To compile a user exit routine

Compile the user exit with the -u option to create the files for the program the user exit routine belongs to, using the following syntax

qcompile -u productline systemcode ProgramCodeX

where X is B, M, or E, depending on the type of user exit.

For example: qcompile -u apps9x gl gl00b