<?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: Loading format in a library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Loading-format-in-a-library/m-p/756266#M238735</link>
    <description>&lt;P&gt;You have to tell SAS where to LOOK for formats.&lt;/P&gt;
&lt;P&gt;Change the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p1fvn6rwmpf1njn1whkud1hmsc97.htm" target="_self"&gt;FMTSEARCH system option&lt;/A&gt; to include your new format catalog.&amp;nbsp; Since you didn't tell PROC FORMAT what name to use for the catalog it used FORMATS.&amp;nbsp; So you want to add either the libref&amp;nbsp;TrialData to the search path or the catalog&amp;nbsp;TrialData.formats.&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jul 2021 16:58:38 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-07-23T16:58:38Z</dc:date>
    <item>
      <title>Loading format in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-format-in-a-library/m-p/756264#M238733</link>
      <description>&lt;P&gt;Hello. I have a bunch of datasets in a library called: 'TrialData'. I have the format library stored in the 'TrialData' as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I try to apply the format in the same 'TrialData' library, it doesn't work. I have to save them under 'Work' library. Is there any way it can be fixed? Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC FORMAT LIBRARY=TrialData;&lt;/P&gt;&lt;P&gt;VALUE Assessment 1='Yes' 0='No' 99 ='Missing or not reported';&lt;/P&gt;&lt;P&gt;VALUE CommitmentStatus 1='Yes' 0='No' 99 = 'Missing or not reported;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Applying format to one of the datasets = Dataset1&lt;/P&gt;&lt;P&gt;DATA TrialData.Dataset1; SET TrialData.Dataset1;&lt;/P&gt;&lt;P&gt;FORMAT&amp;nbsp;Assessment&amp;nbsp;Assessment.&lt;/P&gt;&lt;P&gt;CommitmentStatus&amp;nbsp;CommitmentStatus .;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't work. It only works if I load the format in the Work library&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 16:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-format-in-a-library/m-p/756264#M238733</guid>
      <dc:creator>pacman94</dc:creator>
      <dc:date>2021-07-23T16:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Loading format in a library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loading-format-in-a-library/m-p/756266#M238735</link>
      <description>&lt;P&gt;You have to tell SAS where to LOOK for formats.&lt;/P&gt;
&lt;P&gt;Change the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p1fvn6rwmpf1njn1whkud1hmsc97.htm" target="_self"&gt;FMTSEARCH system option&lt;/A&gt; to include your new format catalog.&amp;nbsp; Since you didn't tell PROC FORMAT what name to use for the catalog it used FORMATS.&amp;nbsp; So you want to add either the libref&amp;nbsp;TrialData to the search path or the catalog&amp;nbsp;TrialData.formats.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jul 2021 16:58:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loading-format-in-a-library/m-p/756266#M238735</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-23T16:58:38Z</dc:date>
    </item>
  </channel>
</rss>

