Hi all,
Has anyone ever received this error message in their log before? What does it mean?
I am doing a very basic Excel output. My program is very large so I won't copy and paste, but here is my simple syntax for the ODS:
ods html close;
ods excel file='\\c\users\elbills\output\test.xlsx';
....
..
......
ods excel close;
And I get this...
NOTE: Writing package \\c\users\elbills\output\test.xlsx.
ERROR: ZIP entry duplicate name: _rels/.rels.
Rels in Open Office speak is a distinct list of values, its M$ way of trying to shrink file size. It suggests to me that something isn't being written correctly. Can you try a simple proc report with a sashelp table. If that writes fine then there is something in your other code causing it. Just add each item until you find it. If nothing writes then maybe tech support as ods excel is not production yet as far as I am aware.
I'm hoping it's a fluke with the ods Excel production and not my code, but thanks for your input! I'll try dissecting it when I get a chance; the output, itself, is fine once opened -- I'm just curious as to the error message.
Every time I've seen this message it's because I have (usually inadvertently) opened multiple destinations for Excel at the same time. Something like
ods excel file="a.xlsx";
ods excel file="b.xlsx";
You can open multiple destinations for Excel simultaneously, but you have to add an ID option:
ods excel(1) file="a.xlsx";
ods excel(2) file="b.xlsx";
Tried that, as well. I even thought maybe I ran so many ODS that something wasn't closed completely, so I restarted SAS...still did the error on my first 'submit'.
Thanks Tim!
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.