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
Get rid of the 2.
Get rid of the 2.
I tried that, but it still does not work 😞
You changed the INFORMAT?
input Impairment : CommaX21.0;
hmm, I think it does work after all, thanks 😉
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.