03-16-2018 01:50 PM
I have a dataset that I am trying to export to a .csv file. I am using SAS 9. See below
PROC EXPORT DATA=ASJ2;
I get the following error.
ERROR: FILE= OR TABLE= is required and must be specified.
What is causing this error?
03-16-2018 02:01 PM - edited 03-16-2018 02:03 PM
You have and extra semi-colon. It is ending the PROC statement too soon.
I find that it really helps when you have a multi-line statement to place the ending semi-colon on a new line. Like you would do with an END statement.
PROC EXPORT DATA=ASJ2 OUTFILE='c:\Users\jmitchel\Documents\ASJ2_Test.csv' DBMS=CSV ; RUN;