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

Hi,

I m trying to do this:

 

data temp;
infile datalines;
input datum :  DATE10.
      value1 COMMAX12.2
      value2 COMMAX12.2
      value3 COMMAX12.2
      value4 COMMAX12.2;
datalines;
01.11.2017	366.020,57	273.972,60	83942020,57	83,94	

;
run;

But I am not able to read the correct date.

 

Can someone help me out please?

 

Thanks!

Dirk

1 ACCEPTED SOLUTION

Accepted Solutions
PeterClemmensen
Tourmaline | Level 20

ddmmyy10. format will do the trick

 

data temp;
input datum:ddmmyy10.;
format datum ddmmyy10.;
datalines;
01.11.2017
;

View solution in original post

5 REPLIES 5
Cynthia_sas
SAS Super FREQ
Hi:
Suggest you look up INFORMATS for dates. The form that your date is in does not appear to fall into the DATE normal representation. You might need to switch to a different date informat. Also, you need the colon modifier for ALL of your VALUE variables, too (not just the DATUM variable). Anything you read with an informat should use the : modifier.

cynthia
PeterClemmensen
Tourmaline | Level 20

ddmmyy10. format will do the trick

 

data temp;
input datum:ddmmyy10.;
format datum ddmmyy10.;
datalines;
01.11.2017
;
dirks
Quartz | Level 8
Thanks a lot!
PeterClemmensen
Tourmaline | Level 20

Anytime, glad to help 🙂

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 5 replies
  • 1919 views
  • 4 likes
  • 4 in conversation