As the first step in the decommissioning of 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
Revision as of 17:25, 24 July 2017 by Paulkaefer (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)

....see also

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