FLAG

Makes the Compiler produce language-level certification flags when it finds syntax that is not part of a specified dialect of COBOL.

Syntax:

>>-.---.-.-----FLAG-----"dialect"-.--------><
   +-/-+ +-NO--FLAG---------------+

Parameters:

dialect
A literal identifying the dialect.
ANS74 ANSI COBOL standard X3.23, 1974
ANS85 ANSI COBOL standard X3.23, 1985
BS2000 Siemens BS2000 COBOL
COBOL370 IBM COBOL/370
DOSVS IBM DOS/VS COBOL
ENTCOBOL IBM Enterprise COBOL
ISO2002 ISO2002 COBOL standard
MVS IBM MVS COBOL
MF Micro Focus
OS390 IBM OS390 COBOL
OSVS IBM OS/VS COBOL
SAA Full implementation of IBM's System Application Architecture definition of COBOL
VSC2 IBM VS COBOL II

Properties:

Default: NOFLAG
Phase: Syntax check
$SET: Any

Comments:

You cannot use DG, RM or MS as a dialect.

When creating a program that is to be fully ANSI'85 or ISO2002 conforming, use:

ANS85 FLAG"ANS85"

or

ISO2002 FLAG"ISO2002"

and correct anything that causes a flagging message to be produced.