SYSMSG Automatic Macro Variable

Contains text to display in the message area of a macro window.
Type: Automatic macro variable (read and write)

Details

Values assigned to SYSMSG do not require quotation marks. The value of SYSMSG is set to null after each execution of a %DISPLAY statement.

Example: %DISPLAY Statement

This example shows that text assigned to SYSMSG is cleared after the %DISPLAY statement.
%let sysmsg=Press ENTER to continue.;
%window start
   #5  @28 'Welcome to SAS';
%display start;
%put Sysmsg is: *&sysmsg*;
When this program executes, the following is written to the SAS log:
Sysmsg is: **