BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Thalitacosta
Obsidian | Level 7
I have two date variables that I need to format the variable "dt" has the "DDMMYY10." format; and the variable "dt_current" has the "E8601DT26.6" format. When I do the code below, the variable "dt_current" does not return the format I want. What format should I use? proc sql; create table NV2 as select DT format=monyy5., DT_CURRENT format=monyy5. from NV1; quit;
1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

When I do the code below, the variable "dt_current" does not return the format I want.


From now on, when you are not getting the desired result, please SHOW US what you are getting, and explain what you want. From now on, don't make us ask to see what you are getting; show us before we ask.

--
Paige Miller

View solution in original post

1 REPLY 1
PaigeMiller
Diamond | Level 26

When I do the code below, the variable "dt_current" does not return the format I want.


From now on, when you are not getting the desired result, please SHOW US what you are getting, and explain what you want. From now on, don't make us ask to see what you are getting; show us before we ask.

--
Paige Miller

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

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!

Register now

What is ANOVA?

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.

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