BookmarkSubscribeRSS Feed
Filipvdr
Pyrite | Level 9

this is my code:

data csv_file_sas;

format datum ddmmyy10. tarief 4.2;

infile csv_file dlm=';' dsd missover lrecl=10000 firstobs=2;

input Etablissement Werkplaats $ Tarief_Cod $ Tarief_Label $  Det_Cod Naam $ Voornaam $ Datum ddmmyy10. Statuut $ Imputatie Kostenplaats Tarief 6 Eenheid Uren Stukken Totaal;

run;

my problem is, that for numbers with decimals like "Tarief", i don't get a number then.

In csv: Tarief

           1

           1,2

In my dataset, the number for 1,2 is blank. Any help?

1 REPLY 1
data_null__
Jade | Level 19

I think you need commaXw.d INFORMAT.

The COMMAXw.d informat operates like the COMMAw.d informat, but it reverses the roles of the decimal point and the comma. This convention is common in European countries.

sas-innovate-2024.png

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.

 

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.

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
  • 1 reply
  • 2045 views
  • 0 likes
  • 2 in conversation