Linlin!! Thanks you so much for your help!!!1 I think we are almost there. I am still getting error messages though. 947 %put &list4; diff_Age=FY12_Age-FY11_Age diff_Height=FY12_Height-FY11_Height diff_Weight=FY12_Weight-FY11_Weight 948 proc datasets nolist; 949 modify class1; 950 rename &list1; NOTE: Renaming variable Age to FY11_Age. NOTE: Renaming variable Height to FY11_Height. NOTE: Renaming variable Weight to FY11_Weight. 951 run; NOTE: MODIFY was successful for WORK.CLASS1.DATA. NOTE: PROCEDURE DATASETS used (Total process time): real time 15.39 seconds cpu time 0.09 seconds 952 proc datasets nolist; 953 modify class2; 954 rename &list2; NOTE: Renaming variable Age to FY12_Age. NOTE: Renaming variable Height to FY12_Height. NOTE: Renaming variable Weight to FY12_Weight. 955 quit; NOTE: MODIFY was successful for WORK.CLASS2.DATA. NOTE: PROCEDURE DATASETS used (Total process time): real time 0.06 seconds cpu time 0.01 seconds 956 data want; 957 merge class1 class2; 958 by name; 959 &list4; NOTE: Line generated by the macro variable "LIST4". 1 diff_Age=FY12_Age-FY11_Age diff_Height=FY12_Height-FY11_Height diff_Weight=FY12_Weight-FY11_Weight ----------- ----------- 22 22 ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, (, *, **, +, -, /, ;, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, [, ^=, {, |, ||, ~=. 960 %put &list4; diff_Age=FY12_Age-FY11_Age diff_Height=FY12_Height-FY11_Height diff_Weight=FY12_Weight-FY11_Weight NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.WANT may be incomplete. When this step was stopped there were 0 observations and 11 variables. NOTE: DATA statement used (Total process time): real time 1:05.50 cpu time 0.39 seconds 961 data want; 962 merge class1 class2; 963 by name; 964 &list4; NOTE: Line generated by the macro variable "LIST4". 1 diff_Age=FY12_Age-FY11_Age diff_Height=FY12_Height-FY11_Height diff_Weight=FY12_Weight-FY11_Weight ----------- ----------- 22 22 ERROR 22-322: Syntax error, expecting one of the following: !, !!, &, (, *, **, +, -, /, ;, <, <=, <>, =, >, ><, >=, AND, EQ, GE, GT, IN, LE, LT, MAX, MIN, NE, NG, NL, NOTIN, OR, [, ^=, {, |, ||, ~=.
... View more