<?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: SAS x command with 7-zip in batch mode in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-x-command-with-7-zip-in-batch-mode/m-p/101815#M28584</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using the same SAS server for interactive and remote?&amp;nbsp; If one is remote, it probably can't see your c: drive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2012 18:58:38 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2012-12-18T18:58:38Z</dc:date>
    <item>
      <title>SAS x command with 7-zip in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-x-command-with-7-zip-in-batch-mode/m-p/101813#M28582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have trouble running 7-zip with the x command in SAS batch mode. I can run the below code in the SAS standard way (interactive mode), but not in batch mode. Is it possible to go around?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;options&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;noxwait&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;xsync&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;* Below line does not work i batch mode, but in SAS interactive mode;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;"c:\progra~1\7-zip\7z.exe a c:\a\b.zip C:\b\b.csv"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;* Below line works in both batch mode and SAS interactive mode;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;"&amp;amp;mikeripath\Documents\Karolinska\Karma\data\sftp\pscp.exe -pw yyy c:\c&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: SV; mso-fareast-language: SV; mso-bidi-language: AR-SA;"&gt;\*.*&lt;BR /&gt;&lt;A href="mailto:zzz@cu.se:/c/"&gt;zzz@cu.se:/c/&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 10pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: SV; mso-fareast-language: SV; mso-bidi-language: AR-SA;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 16:05:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-x-command-with-7-zip-in-batch-mode/m-p/101813#M28582</guid>
      <dc:creator>blackraven</dc:creator>
      <dc:date>2012-12-17T16:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS x command with 7-zip in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-x-command-with-7-zip-in-batch-mode/m-p/101814#M28583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One debugging tool is to use a PIPE so that you can see any error messages that operating system or program is generating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; infile &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"c:\progra~1\7-zip\7z.exe a c:\a\b.zip C:\b\b.csv"&lt;/SPAN&gt; pipe ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; input ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; put _infile_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Dec 2012 16:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-x-command-with-7-zip-in-batch-mode/m-p/101814#M28583</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-12-17T16:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS x command with 7-zip in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-x-command-with-7-zip-in-batch-mode/m-p/101815#M28584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using the same SAS server for interactive and remote?&amp;nbsp; If one is remote, it probably can't see your c: drive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 18:58:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-x-command-with-7-zip-in-batch-mode/m-p/101815#M28584</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-12-18T18:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAS x command with 7-zip in batch mode</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-x-command-with-7-zip-in-batch-mode/m-p/101816#M28585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I noticed that 7-zip was not allowed to update the existing b.zip when SAS run in batch mode, although it was allowed to do it in standard interactive mode. An x command delete statement before the 7-zip statement solved it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 07:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-x-command-with-7-zip-in-batch-mode/m-p/101816#M28585</guid>
      <dc:creator>blackraven</dc:creator>
      <dc:date>2012-12-19T07:41:44Z</dc:date>
    </item>
  </channel>
</rss>

