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


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

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