The $DISPLAY statement displays a message on the standard output device during compilation or includes a version number in
the object file.
General Format for Format 1
General Format for Format 2
Syntax Rules
- The whole $DISPLAY statement must appear on a single line.
General Rules for all Formats
- The Compiler defines constants that identify the type of compilation in effect; use these with the conditional compilation
commands. Each compilation produces a
__unix or
__windows constant, and a
__dotnet (for .NET COBOL),
__jvm (for JVM COBOL), or
__native constant, as appropriate.
General Rules for Format 1
- Text-data is displayed on the standard output device during compilation.
General Rules for Format 2
- Version-number is the content of the entire source line following the "=", excluding leading and trailing spaces.
- The character string formed by concatenating "@(#)", version-number and a null character (binary zero) is included in the
object file, no matter which type of object file is created. If version-number begins with the characters "@(#)", the system
does not concatenate these characters when forming the character string.