% SET ERROR FATAL WARNING INFO

Send a message to the final message report of the compile, as follows.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.
Statement Effect
% SET FATAL Sets MFG return code to 16 and terminates execution..
% SET ERROR Sets MFG return code to 8.
% SET WARNING Sets MFG return code to 4.
% SET INFO No effect on return code.

Syntax:

% SET ERROR message text
% SET FATAL message text
% SET INFO message text
% SET WARNING message text

Aliases:

% Set Error message text       % set error message text
% Set Fatal message text       % set fatal message text
% Set Info message text        % set info message text
% Set Warning message text     % set warning message text

Comments:

Variables appearing in the message text are handled in a fashion different from how they are handled in all other types of statements. No substitution is performed on variable in these statements except when the variables are enclosed in evaluation brackets.

Examples:

Send an informational message to the final message report.

Input:

&A = "ABC"
% SET INFO INVALID DOMAIN TYPE FOR &A = <&A>

Output:

INFO: INVALID DOMAIN TYPE FOR &A = ABC

Send a fatal message and then terminate the MFG.

Input:

&FCN = "PRINT"
% SET FATAL INVALID FUNCTION <&FCN> SPECIFIED

Output:

FATAL: INVALID FUNCTION PRINT SPECIFIED