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 (March 2012, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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));


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