DATA Step, Macro, Functions and more

Reading in .csv file- decimal values within variable names that have a '/' are being read as 0.help!

Reply
Contributor
Posts: 40

Reading in .csv file- decimal values within variable names that have a '/' are being read as 0.help!

[ Edited ]

I am trying to read in a .csv file. Some variable names have DECIMAL values in them- those variable values got displayed as '0'.

I would appreciate any ideas on how to address this??

 

Example variable name: Ag_ab

it had decimal values 0.5,2.5 etc. They all were displayed as '0' when the import happened Smiley Sad

 

This is my code:

data ldata;
infile "C:*****impvars.csv" delimiter=',' firstobs=2;
run;

Frequent Contributor
Posts: 149

Re: Reading in .csv file- decimal values within variable names that have a '/' are being read as 0.h

Where is the input statement?
Super User
Posts: 19,855

Re: Reading in .csv file- decimal values within variable names that have a '/' are being read as 0.h

Ask a Question
Discussion stats
  • 2 replies
  • 79 views
  • 0 likes
  • 3 in conversation