BookmarkSubscribeRSS Feed
ScottBass
Rhodochrosite | Level 12

P.S.:  I've just read PGStats' solution more closely, and mine isn't that much different than PGStats' solution.  Use whichever one works for you.  But do wrap your head around "greedy" vs. "non-greedy" - it applies to both solutions.


Please post your question as a self-contained data step in the form of "have" (source) and "want" (desired results).
I won't contribute to your post if I can't cut-and-paste your syntactically correct code into SAS.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 15 replies
  • 4298 views
  • 1 like
  • 8 in conversation