LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2010, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Sat, 30 Jan 2010 10:13:02 -0600
Reply-To:   "Data _null_;" <iebupdte@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Data _null_;" <iebupdte@GMAIL.COM>
Subject:   Re: Is there a system macro var that indicates if running batch or not?
In-Reply-To:   <4A65BFB28FC42A4B81AAA01C69E99037011733EA@LTA3VS023.ees.hhs.gov>
Content-Type:   text/plain; charset=ISO-8859-1

On 1/29/10, Fehd, Ronald J. (CDC/CCHIS/NCPHI) <rjf2@cdc.gov> wrote: > %sysfunc(ifc(%sysfunc(getoption(SYSIN)) eq > ,%nrstr(PROC PrintTo;) > ,%nrstr(%Put Note: is.a session;); > ) > > notes: > 1. you may need this as the condition: > > %sysfunc(ifc("%sysfunc(getoption(SYSIN))" eq ""

Indeed you do at least on my Windows SAS 9.1.3, but I want to use proper macro quoting and experimented with various quoting functions but the only way I could figure was to use %SYSEVALF and QSYSFUNC.

%sysfunc(ifc(%sysevalF(%Qsysfunc(getoption(SYSIN)) eq,BOOLEAN) ,%nrstr(PROC PrintTo /*include proper options*/;run;) ,%nrstr(%Put Note: is.a session;) ))


Back to: Top of message | Previous page | Main SAS-L page