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.

Tip of the Day:December 30

From sasCommunity
Jump to: navigation, search

sasCommunity Tip of the Day

Did you know that PROC FORMAT in SAS Version 9.3 and later allows regular expressions in INFORMAT and (user-written) function calls in FORMAT? You can even do the reg exp substitutions! Let's try something fun. Read Rick's SGF2012 paper and try to complete the chain reaction. Good luck!

proc format;
   invalue $final 's/final/four/' (regexpe) = [$four.];
   invalue $four  's/four/square/' (regexpe) = [$square.];
   invalue $square 's/square/dance/' (regexpe) = [$dance.];
   /* your code here */
   invalue $travel 's/travel/guide/' (regexpe) = _same_;
run; quit;
data _null_;
   var = input("final", $final.);
   put var=;
/* on log
Submitted By chang_y_chung

Feel free to comment on this tip.

Prior tip - Next tip - Random Tip

Submit a Tip