BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am trying to build a simple conversion table so that I can easily convert my data into date, working day, period, month, year, etc...whenever I want.

It is simply the above headings with their associated values, created in Excel. The plan was to turn it into a SAS dataset, however it's not working.

When I open my table in EG 'month&year' (mmmyy) and 'date' (ddmmyy) are being converted into datetimes (I understand why this happens). I have used the DATEPART function to split the numbers but it is not producing the correct results, i.e. 1st Sep 09 is giving me a date from 1949!!!

Any ideas?
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
Check your YEARCUTOFF option in SAS. If it is 1900, then change to 2000. If it is 2000, then the problem is in your Excel setup.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 573 views
  • 0 likes
  • 2 in conversation