Help using Base SAS procedures

date informat

Reply
Super Contributor
Posts: 266

date informat

What informat do you use to read a date in this form:

6/30/2008 12:00:00 AM
Trusted Advisor
Posts: 2,113

Re: date informat

Check out

http://www2.sas.com/proceedings/sugi30/255-30.pdf

anydtdtm. will probably read it.
Respected Advisor
Posts: 3,777

Re: date informat

While anydttm will probabaly work I would use a specific informat.

[pre]
data _null_;
input dt & mdyampm.;
put dt=mdyampm.;
cards;
6/30/2008 12:00:00 AM
;;;;
[/pre]
Super Contributor
Posts: 266

Re: date informat

got it. thanks.
Ask a Question
Discussion stats
  • 3 replies
  • 137 views
  • 0 likes
  • 3 in conversation