Hello,
as "E8601DT26.6" is a date-time format (date + time) you need to extract the datepart from DT_CURRENT in order to be able to successfully use the monyy5. format :
datepart(DT_CURRENT) format=monyy5.
Koen
Hello,
as "E8601DT26.6" is a date-time format (date + time) you need to extract the datepart from DT_CURRENT in order to be able to successfully use the monyy5. format :
datepart(DT_CURRENT) format=monyy5.
Koen
Looks like you have only one DATE variable. The other one is a DATETIME variable. Date values are stored as number of days. Datetime values are stored as number of seconds. So you cannot use the same format to display both of them. But you could use the DTMONYY5. format to display the datetime value in the same MONYY style.
PS Why are you displaying only two of the four digits of the year? That can cause confusion about which century the values represent.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.