Chapter Contents |
Previous |
Next |
SYSDSN |
Type: | Automatic macro variable (read and write) |
See also: | SYSLAST |
Details | |
Comparisons | |
Example | |
Comparing Values Produced by SYSDSN and SYSLAST |
Details |
The libref and data set name are displayed in two left-aligned fields. If no SAS data set has been created in the current program, SYSDSN returns eight blanks followed by _NULL_ followed by two more blanks.
Comparisons |
Example |
Create a data set WORK.TEST and then enter the following statements:
%put Sysdsn produces: *&sysdsn*; %put Syslast produces: *&syslast*;
Executing these statements writes to the SAS log:
Sysdsn produces: *WORK TEST * Syslast produces: *WORK.TEST *
When the libref or data set name contain fewer than eight characters, SYSDSN maintains the blanks for the unused characters. SYSDSN does not display a period between the libref and data set name fields.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.