Start of change

Free-Form Control Statement

A free-form control statement begins with CTL-OPT followed by zero or more keywords, followed by a semicolon.

Rules for control statements

You can specify zero or more control statements in your source file.

If a control-specification keyword cannot be repeated, it cannot appear more than once in any control statement.

You can mix free-form and fixed-form control statements. Each contiguous group of fixed-form specifications constitutes a single control statement.

When the compilation of a program contains any free-form control statements, the presence of the ACTGRP, BNDDIR, or STGMDL keyword will cause the DFTACTGRP keyword to default to *NO.

The only directives that are allowed within a free-form control statement are /IF, /ELSEIF, /ELSE, and /ENDIF.
   CTL-OPT
       /IF DEFINED(*CRTBNDRPG)
               ACTGRP(*CALLER)
       /ENDIF
       OPTION(*SRCSTMT);

Examples of control statements

End of change