BookmarkSubscribeRSS Feed
seckin
Calcite | Level 5

Hello,

I have written up a short program to read csv files and run it on a sas unix server. If I use

"data infile " to read files there is no problem, it reads file and makes .log, .lst files.

When I read it with "proc import" it cannot, the log file doesn't have anything and

there is no .lst file showing print result.

Here I show the programs:

working one:

filename csvname '/home/usr08/newdata/abc15.csv';

data stockdata;

infile csvname dsd delimiter=',';

input var1 mmddyy10. var2 time12.3 var3 var4 var5 $;

run;

title "List of raw data";

proc print data=stockdata;

format var1 mmddyy10. var2 time 12.3;

run;

the one with "proc import"

filename csvname '/home/usr08/newdata/abc15.csv';

proc import datafile=csvname out=stockdata dbms=csv replace;

getnames=no;

run;

proc print data=stockdata;

run;

The log file is empty so I cannot track down the error. Do you know why this is happening?

Best

seckin

1 REPLY 1

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 1 reply
  • 983 views
  • 0 likes
  • 2 in conversation