BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
AntoineA
Fluorite | Level 6

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;

 

1 ACCEPTED SOLUTION

Accepted Solutions
data_null__
Jade | Level 19

you have 2 too many semicolons

View solution in original post

2 REPLIES 2
data_null__
Jade | Level 19

you have 2 too many semicolons

Astounding
PROC Star

In PROC EXPORT, OUTFILE and DBMS are options on the PROC statement.  They aren't separate statements.  Try removing the first two semicolons.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1334 views
  • 2 likes
  • 3 in conversation