Date: Fri, 29 Jan 2010 18:14:33 -0800
Reply-To: Tom Abernathy <tom.abernathy@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Tom Abernathy <tom.abernathy@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Is there a system macro var that indicates if running batch or
Content-Type: text/plain; charset=ISO-8859-1
Here is the macro code I use to determine back ground processing:
%*----------------------------------------------------------------------
Set S_BACK GMV to 1 when in batch mode.
Note that SYSENV is always FORE in Windows and UNIX.
-----------------------------------------------------------------------;
%if (%sysfunc(getoption(DMR)) = NODMR
& %sysfunc(getoption(DMS)) = NODMS) %then
%let s_back = 1;
%else %let s_back = 0;
|