BookmarkSubscribeRSS Feed
iusing
Calcite | Level 5

I would like to know is it possible to change the default date input format because sometimes when I input the data set using Proc Import, SAS would assume the date is in MDY format but actually my data is DMY format. Is there any ways to change the default setting of SAS?

1 REPLY 1
art297
Opal | Level 21

options datestyle xxx;

where xxx can be in the form, e.g., of mdy, dmy, ymd or whatever from it is in.

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 792 views
  • 4 likes
  • 2 in conversation