|
|
||||
|
Home |
SAS Helpful HintsBiostat Macro LibraryParse a string word by wordOccasionally I like to read through a string, word by word. This
macro makes it easy. It plucks off the first word from a character
variable. Data work.A; The above procedure works well for character variables in a data step. To pluck the first word from a Macro variable, the syntax is a little different: %Macro NextWord(string); %Let sentence=Where did the mouse go?; Please send your comments and suggestions about this web page to A. Watts (watts@bst.rochester.edu) |
|||
©Copyright University of Rochester Medical Center, 1999-2006. Disclaimer. For questions or suggestions concerning the content of these pages, contact the URMC Webmaster. |
||||