Revision: 6177
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 3, 2008 15:52 by webonomic
Initial Code
/* We want to parse the current ID LOLOBRIDGIDA195703F and end up with an ID of the first 5 letters and the last 7 digits to end up with LOLOB195703F */ data _null_; length id2 $12; id = 'LOLOBRIDGIDA195703F'; id2 = substr(id,1,5)||reverse((substr(reverse(id),1,7))); put _all_; run;
Initial URL
http://jaredprins.squarespace.com/blog/2008/5/15/fun-with-parsing-strings-in-sas.html
Initial Description
Need to construct and ID of the first 5 letters and the last 7 digits
Initial Title
SAS String Parsing
Initial Tags
Initial Language
SAS