| Date: | Thu, 22 Mar 2012 14:55:55 -0400 |
| Reply-To: | Steven Raimi <sraimi@MARKETINGASSOCIATES.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Steven Raimi <sraimi@MARKETINGASSOCIATES.COM> |
| Subject: | Re: quoting in SYSFUNC vs data step |
| Content-Type: | text/plain; charset=ISO-8859-1 |
From the Language Referece online docs
(http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/vie
wer.htm#z3514sysfunc.htm):
Details
Because %SYSFUNC is a macro function, you do not need to enclose character
values in quotation marks as you do in DATA step functions. For example, the
arguments to the OPEN function are enclosed in quotation marks when the
function is used alone, but do not require quotation marks when used within
%SYSFUNC. These statements show the difference:
•
dsid=open("sasuser.houses","i");
•
dsid=open("&mydata","&mode");
•
%let dsid = %sysfunc(open(sasuser.houses,i));
•
%let dsid=%sysfunc(open(&mydata,&mode));
|