BookmarkSubscribeRSS Feed
4 REPLIES 4
Kurt_Bremser
Super User

Welcome to the communities!

 

Since I assume you do this on SAS On Demand, you must upload your file to the server first, and then use the path of the uploaded file.

If you do this from a Mac, use Chrome as your browser; several parts of SAS Studio do not work with Safari.

Silvan
Calcite | Level 5

Thanks for your reply! I installed the parallels command on MAC, I consider turning to the online version🤔

Tom
Super User Tom
Super User

I see you seem to be trying to read from some file created on a MAC.

 

For some strange reason Excel on Mac never adopted to the fact that decades ago the MacOS switched to being a flavor of Unix and it defaults to writing text files using Carriage Return instead of Line Feed as the end of line markers.

 

Try setting the TERMSTR=CR option on the INFILE statement.  For the PROC IMPORT define a fileref using a FILENAME statement so you can add the TERMSTR=CR option there also.

 

If you are the one that created the CSV file from Excel on MAC then make sure to select the right filetype when saving so that it uses the proper end of line characters.

Silvan
Calcite | Level 5
Thank you for your detailed explanation! I will give it a try later.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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