<?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: Format was not found or could not be loaded after using options fmtsearch= in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363525#M86101</link>
    <description>&lt;P&gt;Thank you all. I figured it out. In my format library, the formats are called formats64 (I named it when I imported them). After I changed the name to formats, the formats can be loaded.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2017 17:34:11 GMT</pubDate>
    <dc:creator>Heraaaa</dc:creator>
    <dc:date>2017-06-01T17:34:11Z</dc:date>
    <item>
      <title>Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363239#M85962</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run into a problem when I reopened SAS. The format which can be loaded previously can not be loaded any more. I specify the libname for the formats and I can find and open them in SAS explorer. I used options fmtsearch= . However, when I try to set a dataset into another dataset, it always said "Format was not found or could not be loaded".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname fmt 'C:\Users\hli\Desktop\work\project\HealthABC\Data\Formats';&lt;/P&gt;&lt;P&gt;libname PH 'C:\Users\hli\Desktop\work\project\HealthABC\Data\PH';&lt;/P&gt;&lt;P&gt;options fmtsearch=(fmt) ;&lt;/P&gt;&lt;P&gt;data ph;&lt;BR /&gt;set PH.ph;&lt;BR /&gt;keep HABCID HCFAID DOB RACE GENDER SITE VSTATUS DOD CV3DATE VITAL06M VITAL36M DTLASTCT LASTCTYP CV1AGE CV3AGE;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ERROR: The format RACE was not found or could not be loaded.&lt;BR /&gt;ERROR: The format GENDER was not found or could not be loaded.&lt;BR /&gt;ERROR: The format SITE was not found or could not be loaded.&lt;BR /&gt;ERROR: The format STATUS was not found or could not be loaded.&lt;BR /&gt;ERROR: The format VTYPE was not found or could not be loaded.&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know the reason? Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 21:43:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363239#M85962</guid>
      <dc:creator>Heraaaa</dc:creator>
      <dc:date>2017-05-31T21:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363240#M85963</link>
      <description>&lt;P&gt;Check your folder&amp;nbsp;&lt;SPAN&gt;C:\Users\hli\Desktop\work\project\HealthABC\Data\Formats for a file called formats.sas7bcat. If it doesn't exist then you will need to re-create your formats in that folder.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 21:50:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363240#M85963</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-05-31T21:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363244#M85966</link>
      <description>&lt;P&gt;I do have all the formats on file...&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 21:55:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363244#M85966</guid>
      <dc:creator>Heraaaa</dc:creator>
      <dc:date>2017-05-31T21:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363247#M85969</link>
      <description>&lt;P&gt;Explain what you mean "that you have them on file."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you compiled them did you assign your format library to them. e.g.,&lt;/P&gt;
&lt;PRE&gt;libname art '/folders/myfolders';
libname fmt '/folders/myfolders/formats';
proc format library=fmt;
  value $sex
  'M'='Male'
  'F'='Female'
  ;
  value age
  1-14=younger
  15-20=young
  ;
run;
options fmtsearch=(fmt) ;
data art.want;
  set sashelp.class;
  format age age.;
  format sex $sex.;
run;
data want;
  set art.want;
run;
&lt;/PRE&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 22:00:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363247#M85969</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-31T22:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363251#M85973</link>
      <description>&lt;P&gt;I have a bunch of formats that are in .xpt format and I transfered them to SAS format. So I don't need to create any formats myself. However, somehow the formats cannot be loaded.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 22:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363251#M85973</guid>
      <dc:creator>Heraaaa</dc:creator>
      <dc:date>2017-05-31T22:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363254#M85976</link>
      <description>&lt;P&gt;You have to convert them. An example can be found at:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Convert-XPT-to-SAS-Datasets/td-p/97872" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Convert-XPT-to-SAS-Datasets/td-p/97872&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 22:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363254#M85976</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-31T22:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363256#M85978</link>
      <description>&lt;P&gt;I converted them. Right now, I have the SAS format in my specified folder. It actually worked after I transferred them, however, I closed the program. When I opened the program again, the format cannot be loaded any more.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 22:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363256#M85978</guid>
      <dc:creator>Heraaaa</dc:creator>
      <dc:date>2017-05-31T22:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363257#M85979</link>
      <description>&lt;P&gt;Did you reassign the library and include it with the fmtserach option? If you always want those formats&amp;nbsp;to be used you can include those assignments in your config file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2017 22:38:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363257#M85979</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-31T22:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363324#M86016</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/146664"&gt;@Heraaaa&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I converted them. Right now, I have the SAS format in my specified folder. It actually worked after I transferred them, however, I closed the program. When I opened the program again, the format cannot be loaded any more.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then there is something happening that removes the formats from the FMT library, or you are missing the necessary options fmtsearch= in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I guess you use SAS with the Display Manager, you can use the SAS explorer to view the FORMATS catalog in the FMT library for its contents.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 06:19:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363324#M86016</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-06-01T06:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363333#M86020</link>
      <description>&lt;P&gt;plaese post:&lt;/P&gt;
&lt;P&gt;1) The code you used to convert the .xpt file into sas formats ?&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Can it be that the formats were saved to work.formats catalog ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Please run next code and check are those formats realy exist in TEST deataset:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname fmt 'C:\Users\hli\Desktop\work\project\HealthABC\Data\Formats';

proc format lib=fmt cntlout=test; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Jun 2017 07:12:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363333#M86020</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-06-01T07:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363525#M86101</link>
      <description>&lt;P&gt;Thank you all. I figured it out. In my format library, the formats are called formats64 (I named it when I imported them). After I changed the name to formats, the formats can be loaded.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 17:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363525#M86101</guid>
      <dc:creator>Heraaaa</dc:creator>
      <dc:date>2017-06-01T17:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363536#M86102</link>
      <description>&lt;P&gt;You can also use the full name of the catalog in your FMTSEARCH option instead of just giving it a libref. &amp;nbsp;If you only give it a one level name then it assumes you want the FORMAT catalog in that library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ibname fmt 'C:\Users\hli\Desktop\work\project\HealthABC\Data\Formats';
libname PH 'C:\Users\hli\Desktop\work\project\HealthABC\Data\PH';
options fmtsearch=(fmt.formats64) ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Jun 2017 17:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363536#M86102</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-06-01T17:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded after using options fmtsearch=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363543#M86104</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2017 17:52:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded-after-using-options/m-p/363543#M86104</guid>
      <dc:creator>Heraaaa</dc:creator>
      <dc:date>2017-06-01T17:52:21Z</dc:date>
    </item>
  </channel>
</rss>

