Hi - first time poster here so will try my best to describe the problem I am facing. Also fairly newish to SAS. I have a number of variables all in one data set called: Coefficient_t0 Coefficient_t1 Coefficient_t2 Coefficient_t3 etc up to a large number of coefficients (~100). I would like to somehow rename these to Jun18 July18 August18 Spetember 18 etc... I was hoping to loop over the values of t0, t1, t2 and assign each = intnx('month',Start_Date,i,"BEGINNING") this way each value of i should be a new month. Something like: %let nvars=20; %macro doit; data Maturity_Coeffient_all_t_date; set Maturity_Coeffient_all_t; %do i = 1 %to &nvars.; rename Coefficient_t&i. = intnx('month',Start_Date,i,"BEGINNING"); %end; run; %mend; %doit However this won't work... Any way to fix this?
... View more