<?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 Proc format in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Proc-format/m-p/946412#M2396</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to save proc formats permanently and how to use those created user defined formats on datasets?&lt;/P&gt;</description>
    <pubDate>Sat, 05 Oct 2024 15:17:46 GMT</pubDate>
    <dc:creator>JayyA</dc:creator>
    <dc:date>2024-10-05T15:17:46Z</dc:date>
    <item>
      <title>Proc format</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Proc-format/m-p/946412#M2396</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How to save proc formats permanently and how to use those created user defined formats on datasets?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2024 15:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Proc-format/m-p/946412#M2396</guid>
      <dc:creator>JayyA</dc:creator>
      <dc:date>2024-10-05T15:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Proc-format/m-p/946424#M2397</link>
      <description>Direct your PROC FORMAT to write to a library where you have write permission. Add this library to your FMTSEARCH option in your autoexec (depends on the user interface - SAS Studio, Enterprise Guide, Display Manager - you use).</description>
      <pubDate>Sat, 05 Oct 2024 17:33:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Proc-format/m-p/946424#M2397</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2024-10-05T17:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/Proc-format/m-p/946425#M2398</link>
      <description>&lt;P&gt;You can save formats into format catalogs by telling PROC FORMAT what catalog to use with the LIBRARY= option of the PROC FORMAT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can either tell just the libref of the library to write into, in which case the catalog names will be FORMATS.&amp;nbsp; Or you can give it the full two level name of the catalog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once the formats exist in a catalog to re-use them you need to make sure the FMTSEARCH option includes that format catalog.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say you want to store the formats into the same library as the datasets.&lt;/P&gt;
&lt;P&gt;Then the structure of your code to create the format library and the datasets might look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname mylib 'physical path';
options insert=fmtsearch=(mylib);
proc format library=mylib;
value fmta ....;
...
run;
data mylib.myds ;
  .....
  format var1 var4 var5 fmta. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then when you want to use that dataset in another session you just need to first repeat the first two lines so that the libref is defined and the FMTSEARCH option includes the format catalog.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Oct 2024 17:40:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/Proc-format/m-p/946425#M2398</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-10-05T17:40:56Z</dc:date>
    </item>
  </channel>
</rss>

