This is all my code:
ODS LISTING;
libname session1 "C:\Users\laura\OneDrive\Documents\econ485";
PROC IMPORT OUT= WORK.one
DATAFILE="C:\Users\laura\OneDrive\Documents\econ485\project1data.csv"
DBMS=csv REPLACE;
RUN;
proc print data=one;
run;
I tried doing this:
proc contents data=WORK.one;
run;
But I got an error message saying that work.one.data does not exist.
I have no idea what to do.
@khalillx wrote:
This is all my code:
ODS LISTING;
libname session1 "C:\Users\laura\OneDrive\Documents\econ485";
PROC IMPORT OUT= WORK.one
DATAFILE="C:\Users\laura\OneDrive\Documents\econ485\project1data.csv"
DBMS=csv REPLACE;
RUN;
proc print data=one;
run;
I tried doing this:
proc contents data=WORK.one;
run;
But I got an error message saying that work.one.data does not exist.
I have no idea what to do.
Perhaps there's an error in the SASLOG, indicating that work.one did not get created??
Check your full log. Most likely you have another warning or error further up that is causing the issue. You should be testing your code step by step.
Please post the complete log of your program.
@khalillx wrote:
I did.
No, you did not. You just posted code, not logs.
If you are unwilling to help us, how shall we help you?
At least four people have asked to see your LOG. You haven't shown it to us, despite you saying that you did. This prevents us from helping you further.
Here is my earlier request in this thread, where specific instructions are given for how to provide the LOG to us.
Please show us the entire SASLOG for this program. Click on the {i} icon and paste the SASLOG into the window that appears. Do not skip this step.
@khalillx wrote:
I am testing it step by step and there have been no errors up until now.
Please show us the entire SASLOG for this program. Click on the {i} icon and paste the SASLOG into the window that appears. Do not skip this step.
As mentioned in a earlier thread your proc import procedure is failing ERROR: file in Use.
So I will suggest you to close the file is opened by any other user or by your self in any other application, or may be restart SAS session and check again.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.