<?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 Format could not be loaded in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Format-could-not-be-loaded/m-p/74552#M21641</link>
    <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I was trying to add a new variable to my dataset and wanted it to be formatted using the format i define. But I always get this error &lt;B&gt;"The format $&lt;FMTNAME&gt; was not found or could not be loaded."&lt;/FMTNAME&gt;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Can someone help me please.&lt;BR /&gt;
&lt;BR /&gt;
Here's a sample of my code:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;proc format library=fmt.coll;&lt;BR /&gt;
value $brcode '036' = 'Manila'&lt;BR /&gt;
...&lt;BR /&gt;
OTHER = 'Other'&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
value buc 0 = 'buc0'&lt;BR /&gt;
...&lt;BR /&gt;
120 - High = 'buc12'&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
Here' s how I use my format.&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;data mydata.new;&lt;BR /&gt;
set temp;&lt;BR /&gt;
format brname $brcode.; &lt;BR /&gt;
bkt = put(numdays,buc.);	&lt;BR /&gt;
run;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
I only encounter the error with this line &lt;B&gt;"format brname $brcode.;"&lt;/B&gt;&lt;BR /&gt;
Is there any other way to do it?&lt;BR /&gt;
&lt;BR /&gt;
I also tried &lt;B&gt;brcode = put(brname,$brcode.);&lt;/B&gt; but still the same problem&lt;BR /&gt;
&lt;B&gt;"The format $brcode was not found or could not be loaded."&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thank you guys, hoping for your help and suggestions.</description>
    <pubDate>Thu, 19 Feb 2009 01:33:47 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-02-19T01:33:47Z</dc:date>
    <item>
      <title>Format could not be loaded</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-could-not-be-loaded/m-p/74552#M21641</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I was trying to add a new variable to my dataset and wanted it to be formatted using the format i define. But I always get this error &lt;B&gt;"The format $&lt;FMTNAME&gt; was not found or could not be loaded."&lt;/FMTNAME&gt;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Can someone help me please.&lt;BR /&gt;
&lt;BR /&gt;
Here's a sample of my code:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;proc format library=fmt.coll;&lt;BR /&gt;
value $brcode '036' = 'Manila'&lt;BR /&gt;
...&lt;BR /&gt;
OTHER = 'Other'&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
value buc 0 = 'buc0'&lt;BR /&gt;
...&lt;BR /&gt;
120 - High = 'buc12'&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
Here' s how I use my format.&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;data mydata.new;&lt;BR /&gt;
set temp;&lt;BR /&gt;
format brname $brcode.; &lt;BR /&gt;
bkt = put(numdays,buc.);	&lt;BR /&gt;
run;&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
I only encounter the error with this line &lt;B&gt;"format brname $brcode.;"&lt;/B&gt;&lt;BR /&gt;
Is there any other way to do it?&lt;BR /&gt;
&lt;BR /&gt;
I also tried &lt;B&gt;brcode = put(brname,$brcode.);&lt;/B&gt; but still the same problem&lt;BR /&gt;
&lt;B&gt;"The format $brcode was not found or could not be loaded."&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thank you guys, hoping for your help and suggestions.</description>
      <pubDate>Thu, 19 Feb 2009 01:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-could-not-be-loaded/m-p/74552#M21641</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-19T01:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Format could not be loaded</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Format-could-not-be-loaded/m-p/74553#M21642</link>
      <description>hi guys, &lt;BR /&gt;
&lt;BR /&gt;
i found the answer to my problem&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;options fmtsearch=(formats.collection);&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
thanks</description>
      <pubDate>Thu, 19 Feb 2009 01:45:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Format-could-not-be-loaded/m-p/74553#M21642</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-02-19T01:45:32Z</dc:date>
    </item>
  </channel>
</rss>

