The value of SYSENV is independent of
the source of input. The following are values for SYSENV:
when the SAS system
option TERMINAL is in effect. For example, the value is FORE when
you run SAS interactively through a windowing environment.
when the SAS system
option NOTERMINAL is in effect. For example, the value is BACK when
you submit a SAS job in batch mode.
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.