I need a solution to remove all characters to the left of a specific string. See the example below: I have the following transaction codes and need a way to isolate the portion of the string beginning with "4122": Input Transaction Codes: 601412265320 714122892335 507741225009964 Desired Output Codes: 412265320 4122892335 41225009964 The solution can use the following assumptions: I am using Version 7.12 of SAS Enterprise Guide The Transaction Codes are character variables Every Transaction Code will include the string "4122" The string "4122" will only appear once in each Transaction Code The number of characters on either side of the "4122" string can vary. The SCAN Function doesn't seem to work when I tried a multi-character delimiter (It treated 4, 1, & 2 as separate delimiters). If I can use "4122" as delimiter and pull the portion of the Transaction Code to the right of "4122" I can just concatenate "4122" back on the string later on. However, if there is a solution that directly generates the desired output code including "4122" that would be preferred. Thanks, NW
... View more