Start of change

INLINE

The INLINE compiler option controls whether the inlining of procedures (paragraphs or sections) referenced by PERFORM statements in the source program is allowed.

INLINE option syntax

Read syntax diagramSkip visual syntax diagramINLINENOINLINE

Default is: INLINE

Abbreviations are: INL | NOINL

INLINE

Specifying INLINE causes the compiler to allow the inlining of procedures referenced by PERFORM statements in the source program when OPTIMIZE(1) or OPTIMIZE(2) is in effect. Whether to inline procedures in a specific PERFORM block or not is determined by the compiler and it can be overridden by using the >>INLINE OFF directive.

NOINLINE
Specifying NOINLINE causes no inlining1 of procedures referenced by PERFORM statements, no matter which optimization level setting is in effect. It cannot be overridden by using the >>INLINE ON directive.
Note:

1. The word inlining here implies that the compiler might choose to replace the PERFORM of a procedure (paragraph or section) with a copy of that procedure's code. By inserting the procedure code at the location of the PERFORM, the compiler Start of changesaves the overhead of branching logic to and from the procedure.End of change

Start of change

related references  
INLINE directive (Enterprise COBOL for z/OS® Language Reference)  
End of change

End of change