I used this command which I always do to import my data:
PROC IMPORT OUT = WORK.one;
DATAFILE= "C:\Users\laura\OneDrive\Documents\econ485\project1data.csv";
DBMS=csv REPLACE;
RUN;
But I'm getting this error message: PROC IMPORT OUT = WORK.one;
ERROR: FILE= or TABLE= is required and must be specified.
But I have specified my file so I'm not sure why I'm getting this error message. I successfully created a libname with my pathway so I know my pathway is fine.
try this
PROC IMPORT DATAFILE= "C:\Users\laura\OneDrive\Documents\econ485\project1data.csv" OUT = WORK.one;
DBMS=csv REPLACE;
RUN;
it didn't work
WHAT did not work? Please post the log; use the {i} button for this.
libname session1 "C:\Users\laura\OneDrive\Documents\econ485";
PROC IMPORT OUT= SESSION1;
DATAFILE= "C:\Users\laura\OneDrive\Documents\econ485\project1data.csv";
DBMS=csv REPLACE;
RUN;
ERROR: FILE= or TABLE= is required and must be specified.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
What does this mean? I've used this command so many times and never had this issue. Please help.
writing the code in the expected order would help
please look at this link
http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000314361.htm
PROC IMPORT
DATAFILE= "C:\Users\laura\OneDrive\Documents\econ485\project1data.csv"
OUT= SESSION1
DBMS=csv
REPLACE;
RUN;
I merged the two identical questions into one thread.
You have too many semicolons:
PROC IMPORT
OUT=WORK.one
DATAFILE= "C:\Users\laura\OneDrive\Documents\econ485\project1data.csv"
DBMS=csv
REPLACE
;
RUN;
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.