Hi,
I am trying to convert a numeric year to a character year field.
put(VW_client_Social.BroadCastYear,yyyy4.) aS BroadCastYear_chr
works just fine in SAS EG but when I try the same expression in VA 7.1 , I get this error -
ERROR: The format YYYY was not found or could not be loaded.
ERROR: Character expression requires a character format.
3 Th
Thanks,
saspert.
if I change yyyy4. to year4, Sas eg runs fine but returns 1965 as the output
while SAS VA gives the below error -
ERROR: Character expression requires a character format.
Date manipulation in SAS Visual Analytics needs to be done differently than Base SAS. There is no put function available. You need to use the TreatAs function. See this recent post for ideas https://communities.sas.com/t5/SAS-Visual-Analytics/How-to-calculate-age-from-birthdate-using-SAS-VA...
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 lock in 2025 pricing—just $495!
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.