BookmarkSubscribeRSS Feed
sjakie45
Calcite | Level 5

Is it possible to convert a numeric (20150223) to a SAS Date in SAS Visual Analytics by modifying the SQL code in a column expression of a Data Query? What are the limits of the SQL Code of a column expression?

1 REPLY 1
MichelleHomes
Meteorite | Level 14

Hi,

Yes it is possible to convert a numeric in the format YYYYMMDD to a SAS Date using SAS Visual Analytics Data Builder. Here is a screenshot of the expression that you would need to use (I am using the date column in the TEST table)

expression.png

Which produces the SAS date column you are after...

output.png

Kind Regards,

Michelle

//Contact me to learn how Metacoda software can help keep your SAS platform secure - https://www.metacoda.com

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1927 views
  • 1 like
  • 2 in conversation