BookmarkSubscribeRSS Feed
sreeparna93
Calcite | Level 5

I want to import a csv file as a sas dataset. There may or may not be any observation.

What I wrote is not working at all.

 

The code i wrote till now is 

filename extfile '/home/sm25967/DQ_2/deletion_request.csv';
data x;
infile  filename=extfile  firstobs=2 dlm=',' end=done missover DSD;
run;
1 REPLY 1
Tom
Super User Tom
Super User

You have told SAS which file to read, but you have not told it to read anything from the file.  

You need to add at least an INPUT statement.

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

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
  • 1 reply
  • 982 views
  • 0 likes
  • 2 in conversation