As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Tips:Renaming Variables with suffix

From sasCommunity
Jump to: navigation, search

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, the SAS DATA step recognizes the suffix-array notation and thus you can avoid that finger work out with this simple programming syntax:

data dataYouKnowWho;
    set dataWhoKnowWhat(
        rename = (Y1-Y100 = X1 - X100)
    );
run;

....see also

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