BookmarkSubscribeRSS Feed
User_2024
Obsidian | Level 7

Hello, 

I am reading yesterday's output file from the output folder. The file is in excel .xlsx format, as next step, I am comparing today's results, removing duplicates and exporting to the same folder with today's date. My import works fine, I am able to execute the comparison but when trying to download and export data, I encounter the DBMS type XLSX not valid for export. I faced this error before and I solved it but I couldn't figure out now. Suggestions appreciated!

p.s- I tried upper and lower cases too.

rsubmit;
proc export 
data=final_result2
OUTFILE = "myfolder\output\test2_&today..xlsx"
DBMS = xlsx REPLACE;
sheet="list" ;
run;
endrsubmit;
202  proc export
203  data=final_result2
204  OUTFILE = "myfolder\output\test2_&today..xlsx"
205  DBMS = xlsx REPLACE;
ERROR: DBMS type XLSX not valid for export.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

206  sheet="list";
207  run;
NOTE: Remote submit to ACXIOM complete.
3 REPLIES 3
User_2024
Obsidian | Level 7

I fixed the issue. I tried proc export out of the remote statements and it worked. thank you. 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 3 replies
  • 1147 views
  • 0 likes
  • 2 in conversation