Google SAS Search

Add to Google

Wednesday, September 28, 2005

Nifty Informat

What do you do if you are reading a date from a file and the owner of the file suddenly decides to change the format of the date?

Use the new anydtdte. informat.

From the SAS documentation:
Reads and extracts date values from DATE, DATETIME, DDMMYY, JULIAN, MMDDYY, MONYY, TIME, YYMMDD, or YYQ informat values


Nice.

2 comments:

  1. I can't wait to use Version 9 of SAS! Thanks for the tip.

    ReplyDelete
  2. Remember, ANYDTDTE. is going to be very s l o w .

    ReplyDelete