DATA Step, Macro, Functions and more

0 records importing into SAS

New Contributor
Posts: 3

0 records importing into SAS

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;
Super User
Super User
Posts: 6,502

Re: 0 records importing into SAS

[ Edited ]

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.

Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation