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
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:
The one and only FREE resource for general SAS online training as well as study guides for the SAS Base Certification. My goal is to create the SAS Certification prep guide that I never found but always wanted. This should also be a place to come if you are new to the language but are simply looking for online SAS training.