<?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: Large Dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729351#M226942</link>
    <description>1) Try options:&lt;BR /&gt;option obs=10000;&lt;BR /&gt;proc copy .....&lt;BR /&gt;&lt;BR /&gt;load the first 10000 records. And&lt;BR /&gt;&lt;BR /&gt;option firstobs=10001;&lt;BR /&gt;proc copy .........&lt;BR /&gt;&lt;BR /&gt;load the remain records.&lt;BR /&gt;&lt;BR /&gt;2) switch into SAS University Edition .</description>
    <pubDate>Fri, 26 Mar 2021 11:36:45 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-03-26T11:36:45Z</dc:date>
    <item>
      <title>Large Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729048#M226852</link>
      <description>&lt;P&gt;Hi, I have a large dataset 1.1 GB (health data from the CDC), I want to load it into SAS Academy OnDemand but the size limit is 1 GB. Is there another method to load it?&lt;/P&gt;
&lt;P&gt;Thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729048#M226852</guid>
      <dc:creator>Iblouse</dc:creator>
      <dc:date>2021-03-25T13:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Large Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729049#M226853</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&amp;nbsp;a precision the dataset is a SAS &lt;STRONG&gt;.XPT file.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 13:27:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729049#M226853</guid>
      <dc:creator>Iblouse</dc:creator>
      <dc:date>2021-03-25T13:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Large Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729072#M226864</link>
      <description>&lt;P&gt;If that file is available for download from a website, consider using PROC HTTP to download it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename csvfile "$HOME/class.csv";
proc http
  url="https://communities.sas.com/kntur85557/attachments/kntur85557/programming/226864/1/class.csv"
  out=csvfile
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(this example uses a file attached to this post)&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 15:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729072#M226864</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-25T15:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Large Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729247#M226912</link>
      <description>&lt;P&gt;And consider storing it as a binary-compressed SPDE file.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 07:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729247#M226912</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-27T07:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Large Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729351#M226942</link>
      <description>1) Try options:&lt;BR /&gt;option obs=10000;&lt;BR /&gt;proc copy .....&lt;BR /&gt;&lt;BR /&gt;load the first 10000 records. And&lt;BR /&gt;&lt;BR /&gt;option firstobs=10001;&lt;BR /&gt;proc copy .........&lt;BR /&gt;&lt;BR /&gt;load the remain records.&lt;BR /&gt;&lt;BR /&gt;2) switch into SAS University Edition .</description>
      <pubDate>Fri, 26 Mar 2021 11:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729351#M226942</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-03-26T11:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Large Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729431#M226982</link>
      <description>&lt;P&gt;If you don't want to use XPT, but a SAS data set, this program may help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"XTP2SAS.exe".&lt;/P&gt;
&lt;P&gt;&lt;A href="https://bitbucket.org/t_kawakami/xpt2sas/src/master/" target="_blank"&gt;https://bitbucket.org/t_kawakami/xpt2sas/src/master/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I made this on the side of binary analysis of SAS XPT files, and it converts XPT files into sas programs that can be run in sas.&lt;/P&gt;
&lt;P&gt;The data size of 1.1GB is a concern, but if you upload the sas program to SAS on Demand and run it, it will generate a SAS dataset with the same structure as the XPT file.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screen sample" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56559i68BC6C52168564E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2021-03-27_00h48_52.png" alt="screen sample" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;screen sample&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="converted sas program" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/56560i0A62DF9E1E0C53B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2021-03-27_00h49_42.png" alt="converted sas program" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;converted sas program&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 15:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729431#M226982</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-03-26T15:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Large Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729542#M227042</link>
      <description>3) Try option:&lt;BR /&gt;options compress=yes ;&lt;BR /&gt;&lt;BR /&gt;to make dataset smaller .</description>
      <pubDate>Sat, 27 Mar 2021 10:39:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729542#M227042</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-03-27T10:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Large Dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729633#M227098</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/27362"&gt;@Iblouse&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt;&amp;nbsp;a precision the dataset is a SAS &lt;STRONG&gt;.XPT file.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I assume that your trouble is that you cannot upload the file to your On Demand server because of the size?&amp;nbsp; You could try using compression on the file and upload the compressed file instead. An actual SAS version 5 transport file normally compresses to less than 30% of the original size. You should be able to create either a ZIP file or GZIP file (.gz extension added after the regular extension).&lt;/P&gt;
&lt;P&gt;If the file is really a SAS version 5 format XPORT file then you can reference it by pointing a fileref at it using the ZIP engine and then create a libref with the same name using the XPORT engine.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename cdc zip 'file_from_cdc.xpt.gz' gzip;
libname cdc xport;
proc copy inlib=cdc outlib=work;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 15:28:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Large-Dataset/m-p/729633#M227098</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-03-28T15:28:27Z</dc:date>
    </item>
  </channel>
</rss>

