Tip of the Day:July 30

From sasCommunity

Jump to: navigation, search

sasCommunity Tip of the Day

Occasionally, some data analysts have the unfortunate task of renaming variables with suffix and it can be very tough on the fingers to type the variables 100 times. However, SAS data step recognized the suffix-array notation and thus you can avoid that finger work out with this simple programming syntax.

DATA DATAYOUKNOWWHO;
SET DATAYOUKNOWWHAT(
     RENAME = (
       Y1-Y100 = X1 - X100
     ) 
  );
RUN;

Submitted by Murphy Choy. Contact me at my Discussion Page.



Feel free to comment on this tip.


Prior tip - Next tip - Random Tip

Submit a Tip

Personal tools