LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (June 2006, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 1 Jun 2006 17:19:14 +0200
Reply-To:   Anders Mørup Jensen <amo@SSI.DK>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Anders Mørup Jensen <amo@SSI.DK>
Organization:   TDC Totalloesninger
Subject:   Re: loop thru each obs in data step & macro
Comments:   To: sas-l@uga.edu

Hi David,

You cannot create (via symput) and use a macro variable in the same data step.

(probably the most frequent violation of macro variable usage.)

Anders

"David Chang" <chang_dj@yahoo.com> skrev i en meddelelse news:i7mdnX7ai4CsA-PZRVn-ug@comcast.com... > Hi, I am trying to loop thru each obs in the data set with a macro. For > some > reason, the following code does not work. Can anyone help me out ? > > data _null_; > set orders; > call symput("orderId", orderId); /*One column of data "orders" is named > as "orderId")*/ > %printDetail(&orderId); /*for each orderId, print out the order > details.....It does not work.....*/ > run; > > > Thank you !! > > David > > > > >


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