<?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: Load sas7bdat file on sas linus system in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Load-sas7bdat-file-on-sas-linus-system/m-p/896597#M39889</link>
    <description>&lt;P&gt;You don't use PROC IMPORT to load a sas7bdat file. It's already a SAS dataset so you don't need to import it, just try reading it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set '/user/myuser/mysasdata.sas7bdat';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Beware, if your&amp;nbsp;sas7bdat file was NOT created on linux you may still have problems reading it.&lt;/P&gt;</description>
    <pubDate>Sun, 01 Oct 2023 23:32:35 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2023-10-01T23:32:35Z</dc:date>
    <item>
      <title>Load sas7bdat file on sas linus system</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Load-sas7bdat-file-on-sas-linus-system/m-p/896595#M39888</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS Linux version for the first time. I am trying to load sas7bdat file in my work library, but it is failing every time. PROC IMPORT is not working, import from File menu also failed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the ideal way to load the file.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note- The SAS dataset does open/load in SAS Studio.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2023 23:13:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Load-sas7bdat-file-on-sas-linus-system/m-p/896595#M39888</guid>
      <dc:creator>surfsas</dc:creator>
      <dc:date>2023-10-01T23:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Load sas7bdat file on sas linus system</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Load-sas7bdat-file-on-sas-linus-system/m-p/896597#M39889</link>
      <description>&lt;P&gt;You don't use PROC IMPORT to load a sas7bdat file. It's already a SAS dataset so you don't need to import it, just try reading it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set '/user/myuser/mysasdata.sas7bdat';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Beware, if your&amp;nbsp;sas7bdat file was NOT created on linux you may still have problems reading it.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2023 23:32:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Load-sas7bdat-file-on-sas-linus-system/m-p/896597#M39889</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-10-01T23:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load sas7bdat file on sas linus system</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Load-sas7bdat-file-on-sas-linus-system/m-p/896598#M39890</link>
      <description>&lt;P&gt;If the file is has an extension of sas7bdat it is already a SAS data set and should be used directly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can make a library pointing to the location the file is stored&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;libname mylib "root/myfolders/folderwherethebdatfileis";&lt;/PRE&gt;
&lt;P&gt;Open the library and you should see your data set there.&lt;/P&gt;
&lt;P&gt;Reference the data set for procedures using MYLIB.datasetname.&lt;/P&gt;
&lt;P&gt;Or you can use an explicit path to the file but that gets cumbersome quickly:&lt;/P&gt;
&lt;PRE&gt;proc print data="root/myfolders/folderwherethebdatfileis/nameofbdatefile.sas7bdat";
run;&lt;/PRE&gt;
&lt;P&gt;If the file "doesn't load" in SAS Studio then tell us how you attempted to load it and show us the log from what you attempted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/455686"&gt;@surfsas&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using SAS Linux version for the first time. I am trying to load sas7bdat file in my work library, but it is failing every time. PROC IMPORT is not working, import from File menu also failed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the ideal way to load the file.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note- The SAS dataset does open/load in SAS Studio.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2023 23:37:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Load-sas7bdat-file-on-sas-linus-system/m-p/896598#M39890</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-01T23:37:22Z</dc:date>
    </item>
  </channel>
</rss>

