Date: Wed, 5 Jul 2006 12:01:30 -0700
Reply-To: shiling99@YAHOO.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: shiling99@YAHOO.COM
Organization: http://groups.google.com
Subject: Re: Macro debug help :(
In-Reply-To: <1152122444.552279.106170@75g2000cwc.googlegroups.com>
Content-Type: text/plain; charset="iso-8859-1"
I believe it is wrong in syntax, the correct syntax will be,
proc iml;
clout2={1 2 3};
create a from clout2 [colname= {'id1' 'c1'}] ;
append from clout2 ;
quit;
proc print; run;
Obs id1 c1 COL3
1 1 2 3
HTH
machelle wrote:
> Hi all
> I'm need to apply a macro to a dataset I am using, and I'm struggling
> to debug it.
> The following appears in my SAS log:
>
>
> NOTE 137-205: Line generated by the invoked macro "GEE".
>
> 131 I = (1:k)`; C1 = { I NI TRQWCLS COOKDCLS GCLS &XVAR };
> xvar = dfbetcls; clout2 = i||ni||trqwcls||cookdcls||gcls||xvar;
>
> 131 ! create &CLSOUT from clout2 [rowname = id colname = c1] ;
> setout &CLSOUT; append from clout2 [rowname = id colname
>
> -------
>
> 22
> ERROR 22-322: Syntax error, expecting one of the following: ], |).
>
> NOTE: Line generated by the invoked macro "GEE".
>
> 132 = c1];
> -
> 200
> ERROR 200-322: The symbol is not recognized and will be ignored.
>
> Any ideas will be greately appreciated,
>
> Machelle
|