<?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 Unable to Zip files using X command in Base SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318947#M69938</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to zip a csv file using x command, we have around 10 reports generated using a SAS program and the x command is working for all the 9 reports but it is&amp;nbsp;not working for one of the reports generated. I have cheked the permissions on the folder and the file,&amp;nbsp;and the&amp;nbsp;permissons on the .csv file and the folder is 777.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly suggest what am i missing i m using the below code to zip the file once it is created using proc export.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x zip /shared/Santosh/annual/publisher_id/ALL_Business_&amp;amp;today.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /shared/Santosh/annual/publisher_id/ALL_Business_&amp;amp;today..csv;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Santosh...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2016 15:17:55 GMT</pubDate>
    <dc:creator>santosh_pat69</dc:creator>
    <dc:date>2016-12-14T15:17:55Z</dc:date>
    <item>
      <title>Unable to Zip files using X command in Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318947#M69938</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to zip a csv file using x command, we have around 10 reports generated using a SAS program and the x command is working for all the 9 reports but it is&amp;nbsp;not working for one of the reports generated. I have cheked the permissions on the folder and the file,&amp;nbsp;and the&amp;nbsp;permissons on the .csv file and the folder is 777.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kindly suggest what am i missing i m using the below code to zip the file once it is created using proc export.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x zip /shared/Santosh/annual/publisher_id/ALL_Business_&amp;amp;today.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /shared/Santosh/annual/publisher_id/ALL_Business_&amp;amp;today..csv;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Santosh...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 15:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318947#M69938</guid>
      <dc:creator>santosh_pat69</dc:creator>
      <dc:date>2016-12-14T15:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Zip files suing X command in Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318948#M69939</link>
      <description>&lt;P&gt;When you use an X command you are asking the operating system to run a program. I suspect that if you have a compression program that it is named something other than Zip. You may also need to provide the path to the executeable depending on your configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To test the first open a command prompt and type Zip and see what happens. If you get a message similar to 'zip' is not redognized as an internal or external command, operable program or batch file then you do not have a program named zip and should look for the name of any compression program you may have installed.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 15:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318948#M69939</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-12-14T15:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Zip files using X command in Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318949#M69940</link>
      <description>&lt;P&gt;Since you did not post any error or other message, I guess you do not get one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the following method to catch messages returned by system commands:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename oscmd pipe "command you want to run 2&amp;gt;&amp;amp;1";

data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The 2&amp;gt;&amp;amp;1 reroutes stderr (standard error) output to standard output, so you get it in your data step.&lt;/P&gt;
&lt;P&gt;After running your command like this, any messages that are returned by the system will appear in the SAS log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you have them, and they don't provide a clue to you, post them here.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 15:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318949#M69940</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-14T15:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Zip files suing X command in Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318951#M69942</link>
      <description>&lt;P&gt;If you use a pipe instead of the X command then you can examine any error messages the operating system is trying to send you and that should help you to debug your problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  infile "zip /shared/Santosh/annual/publisher_id/ALL_Business_&amp;amp;today.
        /shared/Santosh/annual/publisher_id/ALL_Business_&amp;amp;today..csv"
  pipe;
  input;
  put _infile_;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Dec 2016 15:23:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318951#M69942</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-12-14T15:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Zip files suing X command in Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318962#M69947</link>
      <description>&lt;P&gt;Hi Tom.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your quick&amp;nbsp;response,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried pipe to see what is going on, i got the below eror message:&lt;/P&gt;&lt;P&gt;zip warning: name not matched:&lt;/P&gt;&lt;P&gt;zip error: Nothing to do!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i checked the file exists at the location and name of the file is also same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me on this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 15:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318962#M69947</guid>
      <dc:creator>santosh_pat69</dc:creator>
      <dc:date>2016-12-14T15:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Zip files suing X command in Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318966#M69950</link>
      <description>&lt;P&gt;Do a google search for&lt;/P&gt;
&lt;PRE&gt;zip warning: name not matched:&lt;/PRE&gt;
&lt;P&gt;and follow the links (the stackoverflow ones look quite promising to me), you might get a hint that fits your situation.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 15:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/318966#M69950</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-12-14T15:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Zip files suing X command in Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/319006#M69962</link>
      <description>&lt;P&gt;Check your case. The operation may he CASE sensitive.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2016 18:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/319006#M69962</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-14T18:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Zip files suing X command in Base SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/319298#M70084</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have checked the Case as well, and both file names and the Case is matching.&lt;/P&gt;&lt;P&gt;Kindly suggest me on this.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 16:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Unable-to-Zip-files-using-X-command-in-Base-SAS/m-p/319298#M70084</guid>
      <dc:creator>santosh_pat69</dc:creator>
      <dc:date>2016-12-15T16:07:20Z</dc:date>
    </item>
  </channel>
</rss>

