BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
miss2223
Fluorite | Level 6

Hi 

I got a dataset with a date type (MRCL_DATE_START), but the result is an 'A' rather than a date format? I am trying to code up to identify the students with 'A' from this table. I tried where MRCL_DATE_START = 'A', but obviously doesnt work, as this is a date type and A is a string. Please help. 

 

fionaai2223_0-1662346432648.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

That is how most formats will display the special missing value of .A.

You could test if the value is .A.

MRCL_DATE_START = .a

Or just test if it is missing, which will also find any observations that contain one of the 27 other possible numeric missing values.

missing(MRCL_DATE_START)

 

View solution in original post

1 REPLY 1
Tom
Super User Tom
Super User

That is how most formats will display the special missing value of .A.

You could test if the value is .A.

MRCL_DATE_START = .a

Or just test if it is missing, which will also find any observations that contain one of the 27 other possible numeric missing values.

missing(MRCL_DATE_START)

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 234 views
  • 0 likes
  • 2 in conversation