ILBOIDB

ILBOIDB is a COBOL library routine invoked by executing COBOL statements that perform mathematical calculations. When an arithmetic operation is performed in COBOL, most data items must be converted to binary or defined as binary in working storage (USAGE COMP).

ILBOIDB converts 10 byte internal decimal numbers (COMP-3) or 18 byte external decimal numbers (DISP).into binary (COMP) so that arithmetic computations can be performed.

Hints

CPU execution in ILBOIDB occurs when data items are used for arithmetic operations and need to be converted to binary.

If data items are used for internal computation, using them as DISPLAY (defined in working storage as USAGE DISP) is inefficient. Some data items defined as Packed Decimal (COMP-3) also require this conversion. If these data items are used for internal computations, define them as binary (COMP) to reduce CPU consumption.