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.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.