The SAS Output Delivery System and reporting techniques

importing CSV - columns with decimals don't appear?

Reply
Regular Contributor
Posts: 225

importing CSV - columns with decimals don't appear?

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?

Respected Advisor
Posts: 3,768

Re: importing CSV - columns with decimals don't appear?

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.

Post a Question
Discussion Stats
  • 1 reply
  • 838 views
  • 0 likes
  • 2 in conversation