Hi,
I am trying to export a dataset with the extension .sas7bdat into a csv file but I keep getting this error:
ERROR: FILE= or TABLE= is required and must be specified.
Does anyone have a suggestion to overcome this error message or have a better way to export this file into a CSV file?
The main goal here is to be able to use my dataset with a .sas7bdat extension with the MatLab Software.
Thank you,
PROC EXPORT data=memory.cds_2001_2005; OUTFILE='G:\AAG\Market\CDS.csv'; DBMS=csv replace; run;
you have 2 too many semicolons
you have 2 too many semicolons
In PROC EXPORT, OUTFILE and DBMS are options on the PROC statement. They aren't separate statements. Try removing the first two semicolons.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.