FLAGSTD to specify the level or subset
of the 85 COBOL Standard to be regarded
as conforming, and to get informational messages about the 85 COBOL Standard elements that are included
in your program.
You can specify any of the following items for flagging:
- A selected Federal Information Processing Standard (FIPS) COBOL subset
- Any of the optional modules
- Obsolete language elements
- Any combination of subset and optional modules
- Any combination of subset and obsolete elements
- IBM® extensions (these are
flagged any time that
FLAGSTDis specified, and identified as "nonconforming nonstandard")
Abbreviations are: None
x specifies the subset of the 85 COBOL Standard to be regarded as conforming:
- Language elements that are not from the minimum subset are to be flagged as "nonconforming standard."
- Language elements that are not from the minimum or the intermediate subset are to be flagged as "nonconforming standard."
- The high subset is being used and elements will not be flagged by subset. Elements that are IBM extensions will be flagged as "nonconforming Standard, IBM extension."
yy specifies, by a single character or combination of any two, the optional modules to be included in the subset:
- Elements from debug module level 1 are not flagged as "nonconforming standard."
- Elements from segmentation module level 1 are not flagged as "nonconforming standard."
- Elements from segmentation module level 2 are not flagged as "nonconforming standard."
S is specified,
N is a subset of
letter) specifies that obsolete language elements are flagged as "obsolete."
The informational messages appear in the source program listing, and identify:
- The element as "obsolete," "nonconforming standard," or "nonconforming nonstandard" (a language element that is both obsolete and nonconforming is flagged as obsolete only)
- The clause, statement, or header that contains the element
- The source program line and beginning location of the clause, statement, or header that contains the element
- The subset or optional module to which the element belongs
FLAGSTD requires the standard set of reserved
In the following example, the line number and column where a flagged clause, statement, or header occurred are shown with the associated message code and text. After that is a summary of the total number of flagged items and their type.
You can convert FIPS informational messages
into diagnostic messages, and can suppress FIPS messages, by using
MSGEXIT suboption of the
option. For details, see the related reference about the processing
of MSGEXIT, and see the related task.
Customizing compiler-message severities