Enable/Disable Warning Messages Option

PURPOSE:  The WARNING MESSAGE option controls the displaying of nonfatal warning messages that specify possible errors in the current data base or command.  This command is valid in a CM, PM, SF and as a direct command.

SYNTAX

{ENABLE; DISABLE} WARNING MESSAGE [{IF; UNLESS} clause]

ENABLE

allows the displaying of warning messages.  This is the default state.

DISABLE

suppresses the displaying of warning messages.

{IF; UNLESS} clause

specifies certain criteria that must be met for the ENABLE or DISABLE command to take effect.

EXAMPLE

*REMOVE SF PAY.REP
% SYSTEM file PAY.REP does not exist
*DISABLE WARNING MESSAGES
*REMOVE SF PAY.REP
* (no message appears)

NOTES:  A warning message does not abort a command or program.  It merely informs of possible errors.  It is optional whether or not to attend to the condition specified in a warning message.

The HUSH option can also be used with certain PM statements to suppress the displaying of warning messages.

A warning message is generated by a compiler.  It notes that a command could generate unwanted results.  The computer can execute the command as is but it makes assumptions on what is acceptable to the user.  (EXAMPLE:  moving data to a field that is too small;  The data can be moved but it will be truncated.)

SEE ALSO:  HUSH