BookmarkSubscribeRSS Feed
ashvene30
Calcite | Level 5

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?

3 REPLIES 3
Cynthia_sas
SAS Super FREQ

Hi:

  If you examine your file with NOTEPAD, you'll see that the field with the > and < characters is quoted:

in_file_as_character.png

 

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

 

ashvene30
Calcite | Level 5
How do I write a standard proc import query?

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 622 views
  • 0 likes
  • 3 in conversation