BookmarkSubscribeRSS Feed
Vuitton13
Calcite | Level 5
SAS does not recognize certain characters when exporting my file, format. csv
 
Also the decimal parts of the digits are not taken into account.
 
Enclosed a data capture output when I ran my proc code import datafile
 
I am a beginner learner
thanks
5 REPLIES 5
PeterClemmensen
Tourmaline | Level 20

I think @Kurt_Bremser has already solved your problem. 

 

Also, welcome to the SAS communities 🙂 In the future, when you post a question, please do not use headlines like "URGENT HELP PLEASE". The answer will come no sooner from capitalizing 🙂 Use a descriptive title for your problem and help will come sooner than you know it.

Vuitton13
Calcite | Level 5

OK thanks.

 

ballardw
Super User

You might also post a few rows of your CSV file and explain where the decimal issue occurs.

 

Note: examining CSV files with a spreadsheet program such as Excel is taking chances with  what you will see. Excel may be assuming you don't want to see the decimal portion due to the range of the values. Also you might be running into a national language difference where decimal and comma are treated differently than you expect in either SAS or a spreadsheet program.

 

If you saved the data from a spreadsheet program you may want to rerun the export as spreadsheets are also known to convert certain types of values without telling you.

Vuitton13
Calcite | Level 5

Hello and thank you for all your answers. I tried but it didn't work. I was forced to edit my. csv file in Excel. And with regard to commas, SAS has rounded by default or excess numbers. Only that I do not know if this is the right method. I specify that I am a beginner in SAS

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1285 views
  • 0 likes
  • 4 in conversation