Chapter Contents

Previous

Next
SYSENV

SYSENV



Reports whether SAS is running interactively

Type: Automatic macro variable (read only)


Details


Details

The value of SYSENV is independent of the source of input. Values for SYSENV are

FORE
when the SAS system option TERMINAL is in effect. For example, the value is FORE when you run SAS interactively through a windowing environment.

BACK
when the SAS system option NOTERMINAL is in effect. For example, the value is BACK when you submit a SAS job in batch mode, or when you invoke the SAS System with the name of a file that contains SAS code.

You can use SYSENV to check the execution mode before submitting code that requires interactive processing. To use a %INPUT statement, the value of SYSENV must be FORE. For details, see the SAS documentation for your operating environment.

Operating Environment Information:   Some operating environments do not support the submission of jobs in batch mode. In this case the value of SYSENV is always FORE. For details, see the SAS documentation for your operating environment.  [cautionend]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.