<?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 How to unzip a file in SAS EG to a specific location without the subfolders into the zip file in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-unzip-a-file-in-SAS-EG-to-a-specific-location-without-the/m-p/854863#M42040</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using a unix command to unzip a file save on our unix server. Unfortunately, the file contains a folder and a subfolder which does not respect the folder name convention of sas and unix as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x   %sysfunc(quote(unzip /finsys/...safety_purpose/report.zip -d /finsys/...safety_purpose/report)));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What I would like to do, it's to replace this unix command by something that will give more information into the log file and to have the capability to unzip this file exactly where I want without the imbeded folder structure found into the zip file&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 16:21:08 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2023-01-20T16:21:08Z</dc:date>
    <item>
      <title>How to unzip a file in SAS EG to a specific location without the subfolders into the zip file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-unzip-a-file-in-SAS-EG-to-a-specific-location-without-the/m-p/854863#M42040</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using a unix command to unzip a file save on our unix server. Unfortunately, the file contains a folder and a subfolder which does not respect the folder name convention of sas and unix as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x   %sysfunc(quote(unzip /finsys/...safety_purpose/report.zip -d /finsys/...safety_purpose/report)));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What I would like to do, it's to replace this unix command by something that will give more information into the log file and to have the capability to unzip this file exactly where I want without the imbeded folder structure found into the zip file&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 16:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-unzip-a-file-in-SAS-EG-to-a-specific-location-without-the/m-p/854863#M42040</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2023-01-20T16:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to unzip a file in SAS EG to a specific location without the subfolders into the zip file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-unzip-a-file-in-SAS-EG-to-a-specific-location-without-the/m-p/854872#M42041</link>
      <description>&lt;P&gt;I would approach it by working on the unix command (or script) to do what you want.&amp;nbsp; Then you can use X to invoke it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For SAS approach, see e.g. Chris Hemedinger's blog post:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2015/05/11/using-filename-zip-to-unzip-and-read-data-files-in-sas/&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 17:08:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-unzip-a-file-in-SAS-EG-to-a-specific-location-without-the/m-p/854872#M42041</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-01-20T17:08:49Z</dc:date>
    </item>
  </channel>
</rss>

