<?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 import a .sas7bdat into SAS 9.4 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-into-SAS-9-4/m-p/308019#M270648</link>
    <description>&lt;P&gt;Try next code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LIBNAME mydata '&lt;SPAN&gt;\\***.gov\project\***_***_Store1\**\***\Surveys for ********\**** **\2015-2016 *\Deliverables\2016 04 deliverables\Analytic files'; &amp;nbsp; /* NOTE - without the SAS dataset name */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data want;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; set mydata.hcp_analyt; &amp;nbsp;/* NOTE: without suffix sas7bdat */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As about format error messages - you need to recreate them or to assign a libname where the format cataloge exists.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In case the catalog is under same directory as "mydata" then just add:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; options fmtsearh= (mydata); before above code.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2016 20:24:25 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2016-10-28T20:24:25Z</dc:date>
    <item>
      <title>How to import a .sas7bdat into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-into-SAS-9-4/m-p/308010#M270647</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I know there have been a lot of threads about this issue, but none of the solutions listed seem to be working for me. I have tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; new;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'\\***.gov\project\***_***_Store1\**\***\Surveys for ********\**** **\2015-2016 *\Deliverables\2016 04 deliverables\Analytic files\hcp_analyt.sas7bdat'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;and &lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; work &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'\\***.gov\project\***_***_Store1\**\***\Surveys for ********\**** **\2015-2016 *\Deliverables\2016 04 deliverables\Analytic files\hcp_analyt.sas7bdat'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;print&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;data&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;=work&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'\\***.gov\project\***_***_Store1\**\***\Surveys for ********\**** **\2015-2016 *\Deliverables\2016 04 deliverables\Analytic files\hcp_analyt.sas7bdat'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;Both to no avail. I'm clearly missing something, and knowing me it's pretty obvious, but could someone please clear things up? Is it the length of my file name perhaps? The asterisks are actually words in my actual file, I just can't post the actual file. The spaces are actual spaces in my file name. The first code starts to work, but generates these errors:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Courier New" size="2"&gt;..........&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;ERROR: The format REGION_RAKE was not found or could not be loaded.&lt;/P&gt;&lt;P&gt;ERROR: The format GENDER_RAKE was not found or could not be loaded........&lt;/P&gt;&lt;P&gt;(an error for each)&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;&lt;P&gt;WARNING: The data set WORK.NEW may be incomplete. When this step was stopped there were 0&lt;/P&gt;&lt;P&gt;observations and 432 variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 19:58:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-into-SAS-9-4/m-p/308010#M270647</guid>
      <dc:creator>chelsealutz</dc:creator>
      <dc:date>2016-10-28T19:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .sas7bdat into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-into-SAS-9-4/m-p/308019#M270648</link>
      <description>&lt;P&gt;Try next code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LIBNAME mydata '&lt;SPAN&gt;\\***.gov\project\***_***_Store1\**\***\Surveys for ********\**** **\2015-2016 *\Deliverables\2016 04 deliverables\Analytic files'; &amp;nbsp; /* NOTE - without the SAS dataset name */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;data want;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; set mydata.hcp_analyt; &amp;nbsp;/* NOTE: without suffix sas7bdat */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As about format error messages - you need to recreate them or to assign a libname where the format cataloge exists.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In case the catalog is under same directory as "mydata" then just add:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; options fmtsearh= (mydata); before above code.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 20:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-into-SAS-9-4/m-p/308019#M270648</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-10-28T20:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .sas7bdat into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-into-SAS-9-4/m-p/308028#M270650</link>
      <description>&lt;P&gt;If you have custom formats applied to the dataset but don't have the formats any more you can use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options nofmterr;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will strip the format from the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2016 21:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-into-SAS-9-4/m-p/308028#M270650</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-10-28T21:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to import a .sas7bdat into SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-into-SAS-9-4/m-p/308316#M270651</link>
      <description>The syntax you are trying to use is the core of the SAS Language. &lt;BR /&gt;I sugest that you take the (free!) online programming class.</description>
      <pubDate>Mon, 31 Oct 2016 16:51:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-import-a-sas7bdat-into-SAS-9-4/m-p/308316#M270651</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-10-31T16:51:21Z</dc:date>
    </item>
  </channel>
</rss>

