You need to login to view this content. Please
Login. Not a Member?
Join Us
Log:
23 data work.result(rename=(Score=varscore Grade=vargrade)) ;
24 set work.scores ;
25 run ;
NOTE: There were 4 observations read from the data set WORK.SCORES.
NOTE: The data set WORK.RESULT has 4 observations and 3 variables.
NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.03 seconds
Commentary:
The syntax for listing the variable names in either the RENAME= data set option or the RENAME statement is original_variable_name = new_variable_name. This creates the following output from the original Work.SCORES dataset:
Output:
WORK.SCORES

WORK.RESULT

Leave a Comment