Hi! How should I answer this question below? Any help is greatly appreciated!
Count the number of times the string '?' occurs in variable line. Choose any method that works reliably. Regardless of method, assume that a line won't consist entirely of '?'s.
Try and find a function here that will count the number of characters.
The documentation has an example for the function towards the bottom of page.
Hint: You want to COUNT a character.
@Amy0223 wrote:
Hi! How should I answer this question below? Any help is greatly appreciated!
Count the number of times the string '?' occurs in variable line. Choose any method that works reliably. Regardless of method, assume that a line won't consist entirely of '?'s.
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.