Under the HamiltonRatingScaleforDepression, No of Facebook Posts, No of Twitter Posts and Number of Clicks on Anti-Depression items columns in my file, there are special characters such as >. How do I write a code to read these characters?
Hi:
If you examine your file with NOTEPAD, you'll see that the field with the > and < characters is quoted:
So a standard PROC IMPORT should read the value as character. Or, you could write a DATA Step program and explicitly read the field as character. In a character variable value, any alpha characters, including punctuation are allowed.
Cynthia
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!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.