How to take a substring in SAS with SUBSTR: syntax, extraction and replacement examples, error handling, and when to use SUBSTRN, SCAN or %SUBSTR. Research data often ...