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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.