<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ODS package zip entry duplicate file name error in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-package-zip-entry-duplicate-file-name-error/m-p/687044#M24498</link>
    <description>&lt;P&gt;Looks like you are using macro language to generate code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%do i=1 %to &amp;amp;tot_files;
  ods package(archived) add file=&amp;amp;&amp;amp;file&amp;amp;i;
%end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So we can't tell what code you actually ran from just the program.&amp;nbsp; Please try running the steps without macro logic/macro variables and see if you still have issues.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods package(archived) add file="wk200901/md_names.sas7bdat";
ods package(archived) add file="wk200908/md_names.sas7bdat";
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 27 Sep 2020 15:40:16 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-09-27T15:40:16Z</dc:date>
    <item>
      <title>ODS package zip entry duplicate file name error</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-package-zip-entry-duplicate-file-name-error/m-p/686852#M24496</link>
      <description>&lt;P&gt;Hi I am creating a process to zipping sas datasets and ran into an error where dataset name is the same and thus duplicate entry error.&amp;nbsp; Below is the code snippet.&amp;nbsp; For example I have a dataset MD_names in both folders "wk200901" and "wk200908".&amp;nbsp; The zipping had an error "zip entry duplicate name".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was going to rename the dataset before the zipping, and name back if I decide to unzip.&amp;nbsp;&amp;nbsp; I hope not to re-program this.&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;package&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(archived) &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;open&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; nopf;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; i=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%to&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;tot_files;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;package&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(archived) &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;add&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; file=&amp;amp;&amp;amp;file&amp;amp;i;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;package&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(archived) &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;publish&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;archive&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;properties&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (archive_name=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"&amp;amp;sysuserid._zip&amp;amp;sysdate._&amp;amp;systime..zip"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;archive_path=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"&amp;amp;file_dir."&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ods&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;package&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(archived) &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;close&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 22:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-package-zip-entry-duplicate-file-name-error/m-p/686852#M24496</guid>
      <dc:creator>doqkxl</dc:creator>
      <dc:date>2020-09-25T22:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: ODS package zip entry duplicate file name error</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-package-zip-entry-duplicate-file-name-error/m-p/686996#M24497</link>
      <description>&lt;P&gt;In regular WinZip, there's an option to preserve sub-directories internally within the Zip archive, and therefore you could have duplicate file names and not need to manually rename files.&amp;nbsp; I believe ODS zip can do the same thing, and if so that might be a better option than manual renames.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;lists a path in the last code snippet in this post:&amp;nbsp;&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sasdummy/2014/01/28/create-zip-ods-package/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2014/01/28/create-zip-ods-package/&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 03:06:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-package-zip-entry-duplicate-file-name-error/m-p/686996#M24497</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-09-27T03:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: ODS package zip entry duplicate file name error</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-package-zip-entry-duplicate-file-name-error/m-p/687044#M24498</link>
      <description>&lt;P&gt;Looks like you are using macro language to generate code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%do i=1 %to &amp;amp;tot_files;
  ods package(archived) add file=&amp;amp;&amp;amp;file&amp;amp;i;
%end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So we can't tell what code you actually ran from just the program.&amp;nbsp; Please try running the steps without macro logic/macro variables and see if you still have issues.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods package(archived) add file="wk200901/md_names.sas7bdat";
ods package(archived) add file="wk200908/md_names.sas7bdat";
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Sep 2020 15:40:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-package-zip-entry-duplicate-file-name-error/m-p/687044#M24498</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-09-27T15:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: ODS package zip entry duplicate file name error</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-package-zip-entry-duplicate-file-name-error/m-p/687276#M24509</link>
      <description>&lt;P&gt;Thank you Tom for taking the time and responding to my post.&amp;nbsp; I tested again with hard coded in sas dataset names, which is the same.&amp;nbsp; I got the same error.&amp;nbsp; I am going to rename the dataset name to zip, and name it back when unzipping.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do&amp;nbsp;not have the right version SAS 9.4M5 yet.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-package-zip-entry-duplicate-file-name-error/m-p/687276#M24509</guid>
      <dc:creator>doqkxl</dc:creator>
      <dc:date>2020-09-28T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: ODS package zip entry duplicate file name error</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-package-zip-entry-duplicate-file-name-error/m-p/688048#M24514</link>
      <description>&lt;P&gt;Thank you to those who replied to&amp;nbsp;my question.&amp;nbsp; I ended up renaming the datasets before using the ODS zip.&amp;nbsp; It worked out ok.&amp;nbsp; I shall revisit this when my SAS version is upgraded to SAS9.4M5.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dup_rename.PNG" style="width: 765px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50025iB5A18BE023A54505/image-size/large?v=v2&amp;amp;px=999" role="button" title="dup_rename.PNG" alt="dup_rename.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 22:38:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-package-zip-entry-duplicate-file-name-error/m-p/688048#M24514</guid>
      <dc:creator>doqkxl</dc:creator>
      <dc:date>2020-09-30T22:38:11Z</dc:date>
    </item>
  </channel>
</rss>

