BookmarkSubscribeRSS Feed
Mirisage
Obsidian | Level 7

Hi SAS Forum,

I tried to export a SAS output file using the below code.

PROC EXPORT DATA=work.ABC

OUTFILE="\\abcde-j9-sas01\llk\Income.xlsx"

DBMS=XLS REPLACE;

sheet = "sheet3";

PUTNAMES=YES;

run;

Question:

It gives the following error messege. Could you please help me to identify what is the wrong with the code?

File is not OLE2

Requested Input File Is Invalid

ERROR: Export unsuccessful.  See SAS Log for details.

NOTE: The SAS System stopped processing this step because of errors.

Thank you very much

Mirisage

3 REPLIES 3
Doc_Duke
Rhodochrosite | Level 12

Try using the EXCEL engine; XLS only supports through Excel 2003.  See the documentation for SAS/Access for PC FIle Formats.

mafheracosta
Calcite | Level 5

XLS neither works for mine 😞

Tom
Super User Tom
Super User

Why are you naming the file like it is an XLSX file, but telling PROC EXPORT to produce an XLS file?

sas-innovate-2024.png

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.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 3 replies
  • 2294 views
  • 3 likes
  • 4 in conversation