> From: monal kohli
> Can someone point out what's wrong with this,why is
> the macro variable new not getting the value of var1.
> I cannot use call symput,so I have to stick to %let .
> %MACRO PRNTRPT;
> %GLOBAL new;
> DATA _NULL_;
> LENGTH VAR1 VAR2 VAR3 $3;
> %DO J = 1 %TO 3;
> VAR1= "1" || TRIM(LEFT(J));
> %let new = VAR1;
> %PUT _USER_;
> %PUT "THE VALUE OF new IS " &new;
as noted, you're mixing and matching
we can't guess what you are thinking
other than the note you want to write to the log.
%Let New =;*initialize;
%MACRO PrntRpt(GlobalMvar = new
,Dim_J = 3);
%do J = 1 %to &Dim_J.;
%Let &GlobalMvar. =1&J.;%*macro concatenation;
Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov
By using your intelligence
you can sometimes make your problems twice as complicated.
-- Ashleigh Brilliant