<?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: How to unzip sas7dbat file in SAS on demand for academics in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-sas7dbat-file-in-SAS-on-demand-for-academics/m-p/790731#M253187</link>
    <description>&lt;P&gt;&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This post shows how to unzip a SAS data set and work with it.&amp;nbsp;&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>Tue, 18 Jan 2022 17:50:04 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-01-18T17:50:04Z</dc:date>
    <item>
      <title>How to unzip sas7dbat file in SAS on demand for academics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-sas7dbat-file-in-SAS-on-demand-for-academics/m-p/790730#M253186</link>
      <description>&lt;P&gt;So I've uploaded plenty of .sas7dbat files with no issue, but for the first time I have one that's over 1 GB (it's 1.1 GB). I've been able to zip it and then upload the zipped file, but now I can't figure out how to unzip the file now that it's in SAS Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd appreciate advice on how to unzip the file or some way to split it into two smaller files. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 17:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-sas7dbat-file-in-SAS-on-demand-for-academics/m-p/790730#M253186</guid>
      <dc:creator>greesamu</dc:creator>
      <dc:date>2022-01-18T17:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to unzip sas7dbat file in SAS on demand for academics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-sas7dbat-file-in-SAS-on-demand-for-academics/m-p/790731#M253187</link>
      <description>&lt;P&gt;&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This post shows how to unzip a SAS data set and work with it.&amp;nbsp;&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>Tue, 18 Jan 2022 17:50:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-sas7dbat-file-in-SAS-on-demand-for-academics/m-p/790731#M253187</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-18T17:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to unzip sas7dbat file in SAS on demand for academics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-sas7dbat-file-in-SAS-on-demand-for-academics/m-p/790739#M253188</link>
      <description>&lt;P&gt;Here's a macro to do the unzip:&amp;nbsp;&lt;A href="https://core.sasjs.io/mp__unzip_8sas.html" target="_blank"&gt;https://core.sasjs.io/mp__unzip_8sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 18:13:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-sas7dbat-file-in-SAS-on-demand-for-academics/m-p/790739#M253188</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-01-18T18:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to unzip sas7dbat file in SAS on demand for academics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-sas7dbat-file-in-SAS-on-demand-for-academics/m-p/790745#M253190</link>
      <description>&lt;P&gt;Just to spell it out.&lt;/P&gt;
&lt;P&gt;Point a fileref at the file inside the ZIP file.&lt;/P&gt;
&lt;P&gt;Point another at the place you want to store the SAS dataset.&lt;/P&gt;
&lt;P&gt;Use FCOPY() to extract the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to use RECFM=F and set a specific LRECL value to force BINARY copy.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename in zip "myfile.zip" member='myds.sas7bdat' recfm=f lrecl=512;
filename out "/mydirectory/myds.sas7bdat" recfm=f lrecl=512;
%let rc= %sysfunc(fcopy(in,out));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want the file created in the WORK directory use the PATHNAME() function to find out where that is for this session.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename out "%sysfunc(pathname(work))/myds.sas7bdat" recfm=f lrecl=512;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Jan 2022 18:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-sas7dbat-file-in-SAS-on-demand-for-academics/m-p/790745#M253190</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-01-18T18:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to unzip sas7dbat file in SAS on demand for academics</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-sas7dbat-file-in-SAS-on-demand-for-academics/m-p/790747#M253191</link>
      <description>If you need to work with large data sets, you can also use filename URL to access data sets on public sites and a similar method to Tom's solution to copy them over from a cloud site to your SAS On Demand session. &lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2022 18:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-unzip-sas7dbat-file-in-SAS-on-demand-for-academics/m-p/790747#M253191</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-18T18:56:28Z</dc:date>
    </item>
  </channel>
</rss>

