You are attempting to mix MACRO language with DATA step language - the two are not compatible.
Also you cannot use an ARRAY to reference variables for a rename process because RENAME occurs at the step-level and the ARRAY reference is not.
If you have no need to pass your data, suggest using PROC DATASETS and MODIFY.
You will find useful technical reference material at the SAS support
http://suppor.sas.com/ website using the Google advanced argument listed below:
rename all variables site:sas.com
Scott Barry
SBBWorks, Inc.