OPTIONS Procedure

Example 3: Displaying Expanded Path Environment Variables

Features:
PROC OPTIONS statement options: :
OPTION=
EXPAND
NOEXPAND
HOST

Details

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

Program

proc options option=msg expand;
run;
proc options option=msg noexpand;
run;

Program Description

Show the value of the environment variables:The EXPAND option causes the values of environment variables to display in place of the environment variable. The NOEXPAND option causes the environment variable to display. In this example, the environment variable is !sasroot
proc options option=msg expand;
run;
proc options option=msg noexpand;
run;

Log

Displaying an Expanded and Nonexpanded Pathname Using the OPTIONS Procedure

6    proc options option=msg expand;
7    run;
    SAS (r) Proprietary Software Release xxx  TS1B0

 MSG=( 'C:\Program File\SAS\SAS9.3\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;
9    run;
    SAS (r) Proprietary Software Release xxx  TS1B0

 MSG=( '!sasroot\sasmsg')
                   The path to the sasmsg directory