| The OPTIONS Procedure |
| Procedure features: |
|
This example shows the value of an environment variable when the path is displayed.
| |
proc options option=msg expand host; run; proc options option=msg noexpand host; run; |
Displaying an Expanded and Nonexpanded Pathname using the OPTIONS Procedure
NOTE: PROCEDURE PRINTTO used (Total process time):
real time 0.03 seconds
cpu time 0.00 seconds
6 proc options option=msg expand host;
7 run;
SAS (r) Proprietary Software Release xxx
MSG=( 'C:\Program File\SAS\SAS 9.2\sasmsg' )
The path to the sasmsg directory
NOTE: PROCEDURE OPTIONS used (Total process time):
real time 0.01 seconds
cpu time 0.00 seconds
8 proc options option=msg noexpand host;
9 run;
SAS (r) Proprietary Software Release 9.2 TS1B0
MSG=( '!sasroot\sasmsg' )
The path to the sasmsg directory
NOTE: PROCEDURE OPTIONS used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
10 proc printto; run;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.