Date: Wed, 2 May 2007 10:27:48 -0400
Reply-To: Eric Hoogenboom <erichoogenboom@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Eric Hoogenboom <erichoogenboom@YAHOO.COM>
Subject: Re: Help with concatenation problem
Sekxa,
See code below - untested.
Don't lose yourself into too many % and &.
And do not forget the extra semicolon to finish the assignment.
%do j = 1 %to &tot_obs;
grp&j = var1&j
%if (&tot_obs GT 1) %then
%do i = 2 %to &tot_obs;
|| var&i&j
%end;
;
%end;
Hth,
Eric
|