<?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: Unzipping Files in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624420#M20096</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299093"&gt;@phadnismukta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am zipping the large text file using filename and ODS package. When I am trying to unzip it using unzip command in putty, getting following error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;missing 7329002330 bytes in zipfile&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;attempt to seek before beginning of zipfile&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(please check that you have transferred or created the zipfile in the&lt;/P&gt;
&lt;P&gt;&amp;nbsp; appropriate BINARY mode and that you have compiled UnZip properly)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have winzip. This file is transferred to the client and they don't use sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following code is used to zip&amp;nbsp; the file&lt;/P&gt;
&lt;P&gt;filename newfl "&amp;amp;outpath./abc.zip";&lt;BR /&gt;data _null_;&lt;BR /&gt;if (fexist('newfl')) then&lt;BR /&gt;rc = fdelete('newfl');&lt;BR /&gt;run;&lt;BR /&gt;filename newfl clear;&lt;BR /&gt;filename nwzip "&amp;amp;outpath./abc.txt";&lt;/P&gt;
&lt;P&gt;ods package(newzip) open nopf;&lt;BR /&gt;ods package(newzip) add file=nwzip ;&lt;BR /&gt;ods package(newzip) publish archive&lt;BR /&gt;properties(&lt;BR /&gt;archive_name="abc.zip"&lt;BR /&gt;archive_path="&amp;amp;outpath."&lt;BR /&gt;);&lt;BR /&gt;ods package(newzip) close;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I see nothing that makes this file a zip file; just naming a file with the .zip extension does not cause it to be a zip file. You should add the zip type to the filename statement, see the documentation:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=n1dn0f61yfyzton1l2ngsa1clllr.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;FILENAME Statement: ZIP Access Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Feb 2020 07:08:01 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-02-13T07:08:01Z</dc:date>
    <item>
      <title>Unzipping Files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624419#M20095</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am zipping the large text file using filename and ODS package. When I am trying to unzip it using unzip command in putty, getting following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;missing 7329002330 bytes in zipfile&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;attempt to seek before beginning of zipfile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(please check that you have transferred or created the zipfile in the&lt;/P&gt;&lt;P&gt;&amp;nbsp; appropriate BINARY mode and that you have compiled UnZip properly)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have winzip. This file is transferred to the client and they don't use sas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following code is used to zip&amp;nbsp; the file&lt;/P&gt;&lt;P&gt;filename newfl "&amp;amp;outpath./abc.zip";&lt;BR /&gt;data _null_;&lt;BR /&gt;if (fexist('newfl')) then&lt;BR /&gt;rc = fdelete('newfl');&lt;BR /&gt;run;&lt;BR /&gt;filename newfl clear;&lt;BR /&gt;filename nwzip "&amp;amp;outpath./abc.txt";&lt;/P&gt;&lt;P&gt;ods package(newzip) open nopf;&lt;BR /&gt;ods package(newzip) add file=nwzip ;&lt;BR /&gt;ods package(newzip) publish archive&lt;BR /&gt;properties(&lt;BR /&gt;archive_name="abc.zip"&lt;BR /&gt;archive_path="&amp;amp;outpath."&lt;BR /&gt;);&lt;BR /&gt;ods package(newzip) close;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 06:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624419#M20095</guid>
      <dc:creator>phadnismukta</dc:creator>
      <dc:date>2020-02-13T06:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping Files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624420#M20096</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299093"&gt;@phadnismukta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am zipping the large text file using filename and ODS package. When I am trying to unzip it using unzip command in putty, getting following error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;missing 7329002330 bytes in zipfile&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;attempt to seek before beginning of zipfile&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(please check that you have transferred or created the zipfile in the&lt;/P&gt;
&lt;P&gt;&amp;nbsp; appropriate BINARY mode and that you have compiled UnZip properly)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have winzip. This file is transferred to the client and they don't use sas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following code is used to zip&amp;nbsp; the file&lt;/P&gt;
&lt;P&gt;filename newfl "&amp;amp;outpath./abc.zip";&lt;BR /&gt;data _null_;&lt;BR /&gt;if (fexist('newfl')) then&lt;BR /&gt;rc = fdelete('newfl');&lt;BR /&gt;run;&lt;BR /&gt;filename newfl clear;&lt;BR /&gt;filename nwzip "&amp;amp;outpath./abc.txt";&lt;/P&gt;
&lt;P&gt;ods package(newzip) open nopf;&lt;BR /&gt;ods package(newzip) add file=nwzip ;&lt;BR /&gt;ods package(newzip) publish archive&lt;BR /&gt;properties(&lt;BR /&gt;archive_name="abc.zip"&lt;BR /&gt;archive_path="&amp;amp;outpath."&lt;BR /&gt;);&lt;BR /&gt;ods package(newzip) close;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I see nothing that makes this file a zip file; just naming a file with the .zip extension does not cause it to be a zip file. You should add the zip type to the filename statement, see the documentation:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=n1dn0f61yfyzton1l2ngsa1clllr.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;FILENAME Statement: ZIP Access Method&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 07:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624420#M20096</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-13T07:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping Files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624515#M20112</link>
      <description>&lt;P&gt;Is your putty connection to the same machine where SAS ran?&amp;nbsp; Or did you move the file?&amp;nbsp; If you moved it how did you move it?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 16:31:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624515#M20112</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-13T16:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping Files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624704#M20161</link>
      <description>. Zip file was created on server and then simply copied it to another server. The Zip file size is 1.3gb.</description>
      <pubDate>Fri, 14 Feb 2020 01:01:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624704#M20161</guid>
      <dc:creator>phadnismukta</dc:creator>
      <dc:date>2020-02-14T01:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping Files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624705#M20162</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299093"&gt;@phadnismukta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;. Zip file was created on server and then simply copied it to another server. The Zip file size is 1.3gb.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;To copy from one server to another you have to actually do something.&amp;nbsp; They ran some command. Used some tool. Clicked some button.&lt;/P&gt;
&lt;P&gt;So what exactly did they do to move it from server A to server B?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 01:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624705#M20162</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-14T01:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping Files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624708#M20163</link>
      <description>That I will have to check with the person who copied it. Can you please help me understand how the file transfer would affect the zip file. Also, what if the file is transferred to client using sftp?</description>
      <pubDate>Fri, 14 Feb 2020 01:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624708#M20163</guid>
      <dc:creator>phadnismukta</dc:creator>
      <dc:date>2020-02-14T01:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unzipping Files</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624709#M20164</link>
      <description>&lt;P&gt;If you move a file with an FTP tool it might consider the file as text and try to "fix" it.&amp;nbsp; On Unix a text file uses linefeed as the end of line marker and on Windows it uses carriage return plus line feed.&amp;nbsp; So when moving from UNIX to Windows it might insert a '0D'x bytes in front of every byte with '0A'x.&amp;nbsp; Some old Windows tools might consider the byte '1A'x as a DOS end of file and stop copying when it sees that byte.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If they moved it with SFTP there is less risk as that moves things as binary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why are using ODS PACKAGE to make the zip file instead of just using the ZIP engine?&amp;nbsp; Are you running some really old version of SAS?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that if the expanded file is over 2G bytes you might also have trouble if you are using old software that does not support "large" files.&amp;nbsp; Either in creating, moving or expanding the file.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 01:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Unzipping-Files/m-p/624709#M20164</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-02-14T01:26:44Z</dc:date>
    </item>
  </channel>
</rss>

