BookmarkSubscribeRSS Feed
ImPrasad
Calcite | Level 5

Dear All,

 

  We are facing an issue while exporting dataset to excel.Currently we are using Sas 9.4 version.Intel(R) Core(TM) i5 processor 64 bit .

Below is the synatx and error message displayed in log

 

Syntax:

 

PROC EXPORT DATA=<Dataset>
OUTFILE = "E:\CONTACTIBILITY_PRAMOD\REPORTS\abc\SHEET3P_BRANCH_REGIONWISE_REPORT_FINAL.XLSX"
DBMS = EXCEL REPLACE;
SHEET = "&CAT";
RUN;

 

Log Mesage:

ERROR: DBMS type EXCEL not valid for export.

 

Same was working successfully when We were using 32 bit OS and Sas 9.2.

 

Please suggest a solution.

 

Thanks,

Prasad Devasthali

Hdfc Bank.

 

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Hi,

 

Look here:

https://communities.sas.com/t5/SAS-Procedures/Error-in-proc-export/td-p/82833

 

As a note, I would always avoid using Excel for anything.  Even CSV, which is text based delimited file format (which Excel can parse) is preferable to using closed source proprietary unstrcutured mess which is Excel.

Patrick
Opal | Level 21

Try XLSX instead. This engine still needs SAS/Access to PC Files licensed but it doesn't require the PC File Server.

PROC EXPORT DATA=sashelp.class
  OUTFILE = "c:\temp\test.XLSX"
  DBMS = xlsx REPLACE;
  SHEET = "class";
RUN;

 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 6677 views
  • 0 likes
  • 3 in conversation