BookmarkSubscribeRSS Feed
Calcite | Level 5



I am importing a regular CSV into Base SAS.  Have done this many times,  however this time whilst importing I have a full blank cells in one column that is completely populated in my CSV.


I have never seen this before and completely out of ideas what may be wrong



Super User

Do you use proc import? If yes, don't be surprised.


Anyway, look at the log for suspicious messages.


If that does not give you a clue, post a sample of your file, and your log (use the {i} button for both). If the log is overlong because of many messages, reduce to a representative sample .

Calcite | Level 5

I do use proc import.  Can you suggest a better method?  I will investigate the log.  Thanks for your help

Super User

Use proc import on a file where the import worked. Copy the data step (proc import creates one and runs it) from the log, and apply it to the current file. Study the log in case the result is not what you expected.

Once it works, you can simplify and optimize this data step. The proper way to reliably read text files into SAS is always a customized data step.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 2 in conversation