INCLUDE Link File Command

Specifies an object file to be linked into the executable file.

Syntax:

INCLUDE SYSLIB(filename),[TYPE={ASM|CBL}],[PARMS={VL|IMS|nnn}]

Parameters:

SYSLIB(filename)
Module to include.
TYPE
Module type. Optional. Default: ASM
ASM Assembler object module (.obj)
CBL COBOL module (.int or .gnt)
PARMS
Parameter processing. Required only when TYPE=CBL and register 0 is not available for passing the number of parameters.
VL Scan for high bit in last parameter address to determine number of parameters.
IMS Check first parameter for full-word integer value between 1 and 19. If found, set parameter count to value + 1. If not found, perform VL scan of up to 19 parameters including null parameters. Set parameter count to 19 if no VL bit found.
nnn Set parameter count to specific value.

Comments:

The INCLUDE command can start anywhere after the first column.

If TYPE=CBL, you must either specify the PARMS parameter, or pass the number of parameters in register 0, using the high byte of the register to indicate the method. A value of h"00" indicates that the number of parameters is in the bottom 24 bits of register 0. A value of h"80" is equivalent to PARMS=VL, and a value of h"40' is equivalent to PARMS=IMS.