BookmarkSubscribeRSS Feed
ebills
Fluorite | Level 6

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.

4 REPLIES 4
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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.

ebills
Fluorite | Level 6

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.

Tim_SAS
Barite | Level 11

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";

ebills
Fluorite | Level 6

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!

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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.

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