Hello @sas_student1,
Your question requires more details before experts can help. Can you revise your question to include more information?
Review this checklist:
To edit your original message, select the "blue gear" icon at the top of the message and select Edit Message. From there you can adjust the title and add more details to the body of the message. Or, simply reply to this message with any additional information you can supply.
SAS experts are eager to help -- help them by providing as much detail as you can.
This prewritten response was triggered for you by fellow SAS Support Communities member @PeterClemmensen
.Hello @sas_student1,
Your question requires more details before experts can help. Can you revise your question to include more information?
Review this checklist:
To edit your original message, select the "blue gear" icon at the top of the message and select Edit Message. From there you can adjust the title and add more details to the body of the message. Or, simply reply to this message with any additional information you can supply.
SAS experts are eager to help -- help them by providing as much detail as you can.
This prewritten response was triggered for you by fellow SAS Support Communities member @PeterClemmensen
.can you remove this post please.
I did not finish my post and accidently posted it.
I have a new post with the full question
Trying to figure out how to remove this one and cant seem to find the delete option
The function COUNTW may work depending on how well you define "number of strings".
Of course that is for a single observation.
Do you mean to count across observations?
Example input data and example output for the given input will help provide more specifics.
Issues that can affect this sort of count are quoted strings with imbedded delimiters to count as one "string", Strings with delimiters such as period (is library.dataset to be counted as one string or two?), numeric values with commas and or decimals (is 3,456.7 to be one word, two or 3?)
Presence of special characters such as * / ()%@ and should they be treated as word separators or not.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.