Search notes:

SAS programming, function substr

substr can be used to return a part of a string (a substring).
data _null_;

  fbb="foo bar baz";
  sbs=substr(fbb, 5, 3);
  put sbs;
  
* prints: bar ;

run;
Github repository about-SAS, path: /programming/functions/substr.sas

See also

functions

Index