Previous Page | Next Page

The OPTIONS Procedure

Example 3: Displaying Expanded Path Environment Variables


Procedure features:

PROC OPTIONS statement options:

OPTION=

EXPAND

NOEXPAND

HOST


This example shows the value of an environment variable when the path is displayed.

 Note about code
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;

Previous Page | Next Page | Top of Page