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

Hello,

I am using a data step to import data from a csv file via the following code

---------------------------------------------------------------------------------------------------------

data lls_dat.p_impairment&einlesemonat;

      infile 'Impairments.csv' dsd dlm=';' firstobs=3;

      input Impairment :     CommaX21.2;

      format Impairment CommaX21.2;

run;

---------------------------------------------------------------------------------------------------------

The csv-File contains multiple values in the format 12.123.123, that shoud be importet as 12.123.123,00.

However they are imported as 121.231,23!?

What did I do wrong?

thx, Stefan

1 ACCEPTED SOLUTION

Accepted Solutions
data_null__
Jade | Level 19

Get rid of the 2.

View solution in original post

4 REPLIES 4
data_null__
Jade | Level 19

Get rid of the 2.

sfmeier
Obsidian | Level 7

I tried that, but it still does not work 😞

data_null__
Jade | Level 19

You changed the INFORMAT?

input Impairment :     CommaX21.0;

sfmeier
Obsidian | Level 7

hmm, I think it does work after all, thanks 😉

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 4 replies
  • 2845 views
  • 0 likes
  • 2 in conversation