<?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. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/843985#M333663</link>
    <description>&lt;P&gt;Did you also set the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p1fvn6rwmpf1njn1whkud1hmsc97.htm" target="_blank" rel="noopener"&gt;FMTSEARCH= System Option&lt;/A&gt;?&lt;/P&gt;</description>
    <pubDate>Sun, 13 Nov 2022 05:57:03 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-11-13T05:57:03Z</dc:date>
    <item>
      <title>Format was not found or could not be loaded.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/843977#M333658</link>
      <description>&lt;P&gt;okay I am pulling my hair out on this one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created some formats in the catalog as shown below, the feefmt and fee_format are my own, the rest are from the prep guide.&lt;/P&gt;
&lt;P&gt;the code i used to create my own format is&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format lib=formtlib;
value feefmt
	0-&amp;lt;100 = 'low'
	100 - 500 = 'High';
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_0-1668308896665.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77244iF60CBD4B477E8F7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_0-1668308896665.png" alt="Nietzsche_0-1668308896665.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when I run the following code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc print data=cert.admit;run;

data admit_test;
	set cert.admit;
	format age agegroup. fee feefmt.;
run;
proc print data=admit_test;run;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the result I get is this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_1-1668309024786.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77245i2586538993B46AE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_1-1668309024786.png" alt="Nietzsche_1-1668309024786.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can see that the format from the book is success but my own format failed, looking&amp;nbsp; at the log I got&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_2-1668309098221.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77246i68357151CB48DA8E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nietzsche_2-1668309098221.png" alt="Nietzsche_2-1668309098221.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't understand my format failed, it was successfully loaded into the same directory as the prep guide formats, I don't see any wrong with my format, why did my format failed to load while prep guide worked fine?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 03:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/843977#M333658</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-11-13T03:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/843980#M333659</link>
      <description>&lt;P&gt;I deleted the entire catelog and retry again, now, nothing works, I mean it is right there in the when I check fmtlib&lt;/P&gt;
&lt;PRE&gt;proc format lib=formtlib fmtlib; run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_0-1668311417317.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77247i1F09D19171AFB7C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_0-1668311417317.png" alt="Nietzsche_0-1668311417317.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;you can see the three formats, but when I run&lt;/P&gt;
&lt;PRE&gt;data work.carsurvey;
set cert.cars;
format Sex gender. Age agegroup. Color $col. Income Dollar8.;
run;
proc print data=work.carsurvey;
run;&lt;/PRE&gt;
&lt;P&gt;I get&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_1-1668311470356.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77248i165333B81E8B99F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_1-1668311470356.png" alt="Nietzsche_1-1668311470356.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;log&lt;/P&gt;
&lt;PRE&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 70         
 71         data work.carsurvey;
 72         set cert.cars;
 73         format Sex gender. Age agegroup. Color $col. Income Dollar8.;
                       _______
                       484
 NOTE 484-185: Format GENDER was not found or could not be loaded.
 
 73       ! format Sex gender. Age agegroup. Color $col. Income Dollar8.;
                                   _________
                                   484
 NOTE 484-185: Format AGEGROUP was not found or could not be loaded.
 
 73       ! format Sex gender. Age agegroup. Color $col. Income Dollar8.;
                                                   _____
                                                   484
 NOTE 484-185: Format $COL was not found or could not be loaded.
 
 74         run;
 
 NOTE: There were 8 observations read from the data set CERT.CARS.
 NOTE: The data set WORK.CARSURVEY has 8 observations and 4 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              953.90k
       OS Memory           29872.00k
       Timestamp           13/11/2022 03:50:54 AM
       Step Count                        132  Switch Count  2
       Page Faults                       0
       Page Reclaims                     174
       Page Swaps                        0
       Voluntary Context Switches        17
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           264
       
 
 75         proc print data=work.carsurvey;
 76         run;
 
 NOTE: There were 8 observations read from the data set WORK.CARSURVEY.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.02 seconds
       user cpu time       0.03 seconds
       system cpu time     0.00 seconds
       memory              2400.84k
       OS Memory           30380.00k
       Timestamp           13/11/2022 03:50:54 AM
       Step Count                        133  Switch Count  0
       Page Faults                       0
       Page Reclaims                     297
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           8
       
 
 77         
 78         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 89         &lt;/PRE&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 03:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/843980#M333659</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-11-13T03:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/843985#M333663</link>
      <description>&lt;P&gt;Did you also set the&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p1fvn6rwmpf1njn1whkud1hmsc97.htm" target="_blank" rel="noopener"&gt;FMTSEARCH= System Option&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 05:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/843985#M333663</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-11-13T05:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/843995#M333665</link>
      <description>&lt;P&gt;Do I need to? The prep guide never said anything about FMTSEARCH option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact it says SAS will search both work and permanent library anyway until the format is found.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_0-1668332049921.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77252i65DB54C34A252D52/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_0-1668332049921.png" alt="Nietzsche_0-1668332049921.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 09:35:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/843995#M333665</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-11-13T09:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844005#M333671</link>
      <description>&lt;P&gt;Your formats in a custom format library stored in FORMTLIB cannot be used without the FMTSEARCH option being set properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options fmtsearch=(formtlib);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Nov 2022 12:02:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844005#M333671</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-13T12:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844006#M333672</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/431484"&gt;@Nietzsche&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Do I need to? The prep guide never said anything about FMTSEARCH option.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the FMTSEARCH= system option was really not mentioned (I don't have the prep guide), I would rewrite that snippet of section 12.4 as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="format_search.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77254iA8AF9387A5F5A319/image-size/large?v=v2&amp;amp;px=999" role="button" title="format_search.png" alt="format_search.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that the special libref &lt;EM&gt;Library&lt;/EM&gt; is also mentioned in the section "&lt;EM&gt;Permanently Storing Your Formats&lt;/EM&gt;", of which you posted a screenshot in your other thread&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/few-questions-regarding-to-proc-format/m-p/844000" target="_blank" rel="noopener"&gt;"few questions regarding to proc format"&lt;/A&gt;, but it could easily be overlooked if that was the only occurrence.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 12:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844006#M333672</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-11-13T12:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844007#M333673</link>
      <description>&lt;P&gt;SAS will only search for formats that&amp;nbsp; are in libraries that are in the fmtsearch path.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since this is for a class, it is possible that the some of the setup code added the formtlib to the search path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To check your fmtsearch setting, you can submit:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(getoption(fmtsearch)) ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and look in the log.&amp;nbsp; It will show the libraries that are in the search path, and the order in which they are searched.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another thing to double-check is which directory the formtlib libref points to.&amp;nbsp; To check that, you can submit:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %sysfunc(pathname(formtlib)) ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and look in the log.&amp;nbsp; From the instructions in the guide, they say it should point to C:\Users\studen1\formats\lib.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you deleted the catalog (which was a good test to do), did you delete it from that directory or some other directory?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW, thanks for taking the time to submit a clear question, with code, annotated output, and logs!&amp;nbsp; This sort of debugging is exactly the kind of thing that will make you pull out your hair, especially in the beginning.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 12:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844007#M333673</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-11-13T12:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844053#M333706</link>
      <description>&lt;P&gt;thanks, I spent 3 hours on this yesterday&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 08:20:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844053#M333706</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-11-14T08:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844054#M333707</link>
      <description>&lt;P&gt;IT WAS NOT MENTIONED AT ALL.&lt;/P&gt;
&lt;P&gt;Ridiculous that the author would left this out!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here is the entire chapter 12 if you wish to search for that option.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 08:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844054#M333707</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-11-14T08:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844070#M333713</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/431484"&gt;@Nietzsche&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this training is produced by SAS , you should notify them of a major omission. If it is produced by some other author, you should notify the author.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 12:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844070#M333713</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-14T12:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844211#M333761</link>
      <description>&lt;P&gt;I put all the errata I have found in this thread.&amp;nbsp; SAS prep guides does not list the name of the author, so hopefully some SAS employee will refer to the SAS department that is responsible for the books to this thread and fix their errors and omissions in the next edition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Certification/Errata-for-SAS-Certified-Specialist-Prep-Guide-2019/m-p/842646#M1365" target="_blank"&gt;https://communities.sas.com/t5/SAS-Certification/Errata-for-SAS-Certified-Specialist-Prep-Guide-2019/m-p/842646#M1365&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 21:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/844211#M333761</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-11-14T21:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Format was not found or could not be loaded.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/846466#M334624</link>
      <description>&lt;P&gt;Great explanation by Ron Cody in his book&amp;nbsp;&lt;A href="https://www.amazon.com.au/Getting-Started-SAS-Programming-Studio-ebook/dp/B08X4WX1C6" target="_self"&gt;Getting-Started-SAS-Programming-Studio&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nietzsche_0-1669538026409.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77743i2F33624F2F7958A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Nietzsche_0-1669538026409.png" alt="Nietzsche_0-1669538026409.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2022 08:34:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-was-not-found-or-could-not-be-loaded/m-p/846466#M334624</guid>
      <dc:creator>Nietzsche</dc:creator>
      <dc:date>2022-11-27T08:34:48Z</dc:date>
    </item>
  </channel>
</rss>

