BookmarkSubscribeRSS Feed
jtuk
Calcite | Level 5

Hi

I need to export a dataset to create a new excel spreadsheet (not a csv and not DDE into an existing excel spreadsheet).

·         When trying to do so I get the following error “ERROR: DBMS type EXCELCS not valid for export.” (DBMS = EXCELCS is for connecting remotely), so it looks like I don’t hold the correct SAS/access interfacing licence?

·         Am I missing something here or is it just not possible to do with our current packages, which are

My code is:

proc export data = dat_expo

outfile="dat_out.xls"

dbms=EXCEL  /* I've also tried EXCELCS */

replace;

run;

Thanks,

Jude

3 REPLIES 3
Reeza
Super User

Run proc setinit; run; to see if you have the CONNECT and/or ACCESS to PC FILES Licenses.

Another option is to use ods tagsets.excelxp. No license needed.

ods tagsets.excelxp file="dat_out.xls";

proc print data=dat_expo;

run;

ods tagsets.excelxp close;

You can find references here:

http://support.sas.com/rnd/base/ods/odsmarkup/excelxp_demo.html

ballardw
Super User

Brief add to Reeza's solution, tagsets.excelxp actually creates XML and you may get a warning from Excel that the file isn't in the format expected given it's name. You may want to actually do a "Save As" from Excel to make an actual XLX or XLXS file.

Ksharp
Super User

Or Try another engine if your file is in English.

dbms=XLS

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
  • 933 views
  • 0 likes
  • 4 in conversation