BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Nasser_DRMCP
Lapis Lazuli | Level 10

Hello,

 

this is what i have in en external csv file. sometimes 2 decimal, 1 or 0

reference;amount  
101;190000,12
102;190000,1
103;190000

 

I don't succeed to load in a table.

thnaks in advance for your help

regards

Nasser

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
It looks like your delimiter is actually a semicolon so as long you specify the correct delimiter it should work. Can you post the code you used and we can show you what needs to be changed?

View solution in original post

3 REPLIES 3
PeterClemmensen
Tourmaline | Level 20

How did you not succeed? What went wrong?

Tom
Super User Tom
Super User

Should work find, if you use the right INFORMAT.

Example:

data want;
  infile cards dsd dlm=';' truncover ;
  input id $ value :commax. ;
cards4;
101;190000,12
102;190000,1
103;190000
;;;;

proc print;
run;
Obs    id       value

 1     101    190000.12
 2     102    190000.10
 3     103    190000.00

 

 

Reeza
Super User
It looks like your delimiter is actually a semicolon so as long you specify the correct delimiter it should work. Can you post the code you used and we can show you what needs to be changed?

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