Here is a simple way to do it. No need to use array. Just ues rename option in the set statement.
data b; set a (rename= (adj_crYr1-adj_crYr6 = cumm_crYr1-cumm_ crYr6 adj_gpaYr1-adj_gpaYr6 = cumm_gpaYr1-cumm_gpaYr6 )); run;
A journey of a thousand miles begins with the first step.
Here is a simple way to do it. No need to use array. Just ues rename option in the set statement.
data b; set a (rename= (adj_crYr1-adj_crYr6 = cumm_crYr1-cumm_ crYr6 adj_gpaYr1-adj_gpaYr6 = cumm_gpaYr1-cumm_gpaYr6 )); run;