BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
fri0
Quartz | Level 8

Hi, I'm attaching a txt file that is part of a database with more variables, but this column is the only one that gives problems.

If you open the file with a excel, you could show all dates until December, but if you use the Enterprise Guide to make the import you only get dates until Nov 29, but there are not December dates. Someones could help me please?

1 ACCEPTED SOLUTION

Accepted Solutions
Jagadishkatam
Amethyst | Level 16

Hi,

On close observation of the data provided by you in the txt file, the dates of December has typo error. The month "Dec" is mistyped as "Dic". This is the possible reason why the dates after 29Nov2013 are not being read. After 29Nov2013, the date started is 02Dic2013, which should have been 02Dec2013.

May be after making the change, all the dates should be read.

Please check.

Thanks,

Jag

Thanks,
Jag

View solution in original post

8 REPLIES 8
ChrisHemedinger
Community Manager

These dates are locale-specific, so you need to make sure that your SAS session is running in the correct locale, and then select the appropriate NL* informat for your date format.

See this paper for more information:

http://support.sas.com/resources/papers/proceedings13/025-2013.pdf

Chris

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
fri0
Quartz | Level 8

Hi, thanks for your help. I was about to try but a friend told me that your solution could create problems in other projects where date variables are correctly imported. We change the original software to generate the txt file with another date form that could be imported correctly by Sas. Thanks again, I didn't know about that possibility of change the sas standards to import.

Jagadishkatam
Amethyst | Level 16

Hi,

On close observation of the data provided by you in the txt file, the dates of December has typo error. The month "Dec" is mistyped as "Dic". This is the possible reason why the dates after 29Nov2013 are not being read. After 29Nov2013, the date started is 02Dic2013, which should have been 02Dec2013.

May be after making the change, all the dates should be read.

Please check.

Thanks,

Jag

Thanks,
Jag
ChrisHemedinger
Community Manager

Jag - it wasn't a typo, it was in Spanish.  December => Diciembre en español...

Looks like the problem has been resolved though...

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
Jagadishkatam
Amethyst | Level 16

Thank you Chris,

I thought it was a typo error as i saw the other names similar to English names.

Thanks,
Jag
fri0
Quartz | Level 8

Exactly, in Spanish it's Diciembre. I will try to change the month to see what happens.

fri0
Quartz | Level 8

You were totally right. Thank you very much.

Jagadishkatam
Amethyst | Level 16

Thank you for checking this and confirming.

Thanks,
Jag

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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
  • 8 replies
  • 2564 views
  • 3 likes
  • 3 in conversation