Providing software solutions since 1976
Training & Books
An incorrect TITLE statement correctly generates a warning message, but fails to set the return code or &SYSCC to a 4 for IBM mainframe systems or a 1 for UNIX or Windows systems prior to SAS 9.2.
For example, the following TITLE statement generates a warning message, but sets the return code to 0 prior to SAS 9.2:
TITLE 'Title Generates Warning' Message;
WARNING: The TITLE statement is ambiguous due to invalid options
or unquoted text.
Another example of a TITLE statement that generates a warning message,
but sets the return code to 0 prior to SAS 9.2:
TITLE11 'Sample Title 11';
WARNING: TITLE statement number must be between 1 and 10. The
statement will be ignored.
In SAS 9.2 the TITLE statement has been fixed to correctly produce a return code 4 or 1 (depending on the operating system) for warning messages.