| 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 |
|
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
>
>
>
>
>
|