<?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 unzip files from SAS in a loop in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711841#M219342</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to unzip a bundle of zip files in SAS DI/SAS 9.4. I use the name of files as input to the loop and below is my code for the job which should run in the loop. However it does not work. It Unzip the first file and the process do not stop and do not unzip the other files. So somehow the loop is not pushing forward from the first value of name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options noxsync noxwait;&lt;BR /&gt;data _null_;&lt;BR /&gt;%put &amp;amp;name.;&lt;BR /&gt;X """C:\Program Files\7-Zip\7z.exe"" e ""E:\SAS\Mydata\&amp;amp;name."" -oE:\SAS\MyData\Data\";&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jan 2021 09:40:33 GMT</pubDate>
    <dc:creator>ANLYNG</dc:creator>
    <dc:date>2021-01-16T09:40:33Z</dc:date>
    <item>
      <title>unzip files from SAS in a loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711841#M219342</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to unzip a bundle of zip files in SAS DI/SAS 9.4. I use the name of files as input to the loop and below is my code for the job which should run in the loop. However it does not work. It Unzip the first file and the process do not stop and do not unzip the other files. So somehow the loop is not pushing forward from the first value of name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options noxsync noxwait;&lt;BR /&gt;data _null_;&lt;BR /&gt;%put &amp;amp;name.;&lt;BR /&gt;X """C:\Program Files\7-Zip\7z.exe"" e ""E:\SAS\Mydata\&amp;amp;name."" -oE:\SAS\MyData\Data\";&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 09:40:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711841#M219342</guid>
      <dc:creator>ANLYNG</dc:creator>
      <dc:date>2021-01-16T09:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: unzip files from SAS in a loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711853#M219344</link>
      <description>&lt;P&gt;Your code does not contain anything that would make it loop (DO, %DO, or reading a dataset/file).&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 12:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711853#M219344</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-16T12:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: unzip files from SAS in a loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711881#M219358</link>
      <description>&lt;P&gt;The loop is in the outer job in sas di. The code above is from the inder job and has &amp;nbsp;name parameters which should run it in a loop.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 19:58:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711881#M219358</guid>
      <dc:creator>ANLYNG</dc:creator>
      <dc:date>2021-01-16T19:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: unzip files from SAS in a loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711886#M219360</link>
      <description>&lt;P&gt;Then I guess that the macro variable &amp;amp;name never changes, and the same file is unzipped again and again.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 20:41:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711886#M219360</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-16T20:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: unzip files from SAS in a loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711888#M219362</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;H&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sun, 17 Jan 2021 19:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711888#M219362</guid>
      <dc:creator>ANLYNG</dc:creator>
      <dc:date>2021-01-17T19:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: unzip files from SAS in a loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711930#M219386</link>
      <description>&lt;P&gt;You said you have an "outer loop" in DI. How does that work, and where does it set the macro variable?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 09:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711930#M219386</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-01-17T09:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: unzip files from SAS in a loop</title>
      <link>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711982#M219408</link>
      <description>&lt;P&gt;I managed to get things working by including everything in one job. Thank you for your contribution.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 19:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/unzip-files-from-SAS-in-a-loop/m-p/711982#M219408</guid>
      <dc:creator>ANLYNG</dc:creator>
      <dc:date>2021-01-17T19:16:13Z</dc:date>
    </item>
  </channel>
</rss>

