I get the following results when trying to convert numeric to date using TreatAs in VA Exploration. Any suggestions?
Thanks, Jane
Hi
If possible, I would change the datasource, so that the value is already a proper date. If this is not possible, you can use the Format and Parse Operators to convert it like so
Parse(Format('someDate'n, 'BEST8.'), 'ANYDTDTE8.')
The TreatAs will convert a numeric value representing a SAS date to a date
Hi
If possible, I would change the datasource, so that the value is already a proper date. If this is not possible, you can use the Format and Parse Operators to convert it like so
Parse(Format('someDate'n, 'BEST8.'), 'ANYDTDTE8.')
The TreatAs will convert a numeric value representing a SAS date to a date
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.