<?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: How to reach the contents of my Format Library in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514594#M138762</link>
    <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't get how to use it in my code, can you give me an example on how to use this? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say our format is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format library=mylibrary;&lt;BR /&gt;value &lt;STRONG&gt;income&lt;/STRONG&gt; low-2000="low"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000&amp;lt;-6000="middle"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6000&amp;lt;-high="high";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Nov 2018 21:31:52 GMT</pubDate>
    <dc:creator>chinaski</dc:creator>
    <dc:date>2018-11-19T21:31:52Z</dc:date>
    <item>
      <title>How to reach the contents of my Format Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514546#M138750</link>
      <description>&lt;P&gt;Hi, i have some difficulties for reaching the &lt;STRONG&gt;contents of my format library&lt;/STRONG&gt;, although i know how to create format, store it into a library that i have created and how to recall that formats for the future use but i don't know how to list its contents and see if there is something useful for my ongoing task, so&amp;nbsp;i want a list of formats in that library that i created in the past to see what is inside it. By that way i will be able to decide whether to create new formats i need or i already created in the past and i can use them right away.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, in short i want to see;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) Which formats i created so far and to where (which permanent libraries).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) Lists of formats that i created in each permanent libraries.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and by the help of these two, i could be able to decide whether i have to create new formats or i can use the formats that i created in the past.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your time and help.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 19:37:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514546#M138750</guid>
      <dc:creator>chinaski</dc:creator>
      <dc:date>2018-11-19T19:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to reach the contents of my Format Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514549#M138752</link>
      <description>Try SASHELP.VFORMAT table which has all the formats created and some metadata on them as well.</description>
      <pubDate>Mon, 19 Nov 2018 19:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514549#M138752</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-19T19:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to reach the contents of my Format Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514562#M138755</link>
      <description>&lt;P&gt;Proc catalog&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://studysas.blogspot.com/2010/08/how-to-get-details-of-formats-from.html" target="_blank"&gt;http://studysas.blogspot.com/2010/08/how-to-get-details-of-formats-from.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:18:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514562#M138755</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-19T20:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to reach the contents of my Format Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514567#M138756</link>
      <description>&lt;P&gt;If you use Enterprise Guide as your SAS interface then the Catalogs and Formats Explorer available on the Tools menu is useful for this. This is a fairly new so it may not be available in older versions of EG.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:34:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514567#M138756</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-11-19T20:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to reach the contents of my Format Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514571#M138757</link>
      <description>&lt;P&gt;Don't you need more than a list of format names?&amp;nbsp; You can get the contents of the formats in a library using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format library=mylib.formats fmtlib;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you do need some of the earlier-suggested steps to get a list of which format libraries exist.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 20:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514571#M138757</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-11-19T20:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to reach the contents of my Format Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514577#M138760</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/135895"&gt;@chinaski&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My usual method of reviewing format definitions is the one suggested by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By adding a &lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=p13qw1bnotx0gon14dvyt7n6zop8.htm&amp;amp;locale=en" target="_blank"&gt;SELECT&lt;/A&gt; statement you can restrict the results to one or more individual formats or groups of formats (specified by partial format names or lists of format names), e.g.&lt;/P&gt;
&lt;PRE&gt;proc format fmtlib lib=your_lib;&lt;BR /&gt;select $:;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;selects all &lt;EM&gt;character&lt;/EM&gt; formats (in &lt;FONT face="courier new,courier"&gt;your_lib&lt;/FONT&gt;) because their names begin with a dollar sign.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 21:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514577#M138760</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-11-19T21:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to reach the contents of my Format Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514594#M138762</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't get how to use it in my code, can you give me an example on how to use this? Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lets say our format is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format library=mylibrary;&lt;BR /&gt;value &lt;STRONG&gt;income&lt;/STRONG&gt; low-2000="low"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000&amp;lt;-6000="middle"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6000&amp;lt;-high="high";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 21:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514594#M138762</guid>
      <dc:creator>chinaski</dc:creator>
      <dc:date>2018-11-19T21:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to reach the contents of my Format Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514598#M138763</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;proc catalog&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN style="color: blue;"&gt;catalog&lt;/SPAN&gt; = frmtdir.formats;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;SPAN style="color: blue;"&gt;contents&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;"&gt;worked very well, others i got error messagges, thank you very much.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 21:45:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514598#M138763</guid>
      <dc:creator>chinaski</dc:creator>
      <dc:date>2018-11-19T21:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to reach the contents of my Format Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514600#M138764</link>
      <description>&lt;P&gt;What are you trying to do there? I'm not sure. I was answering your original question, which was to find which library and formats are available. You can do that via the following, which will tell you the library name and the format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=sashelp.vformat;
where source='C';
table libname*fmtname / list;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The answers above, assume you know the library, but I interpreted your question more generally.&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;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/135895"&gt;@chinaski&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I didn't get how to use it in my code, can you give me an example on how to use this? Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Lets say our format is this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format library=mylibrary;&lt;BR /&gt;value &lt;STRONG&gt;income&lt;/STRONG&gt; low-2000="low"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2000&amp;lt;-6000="middle"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6000&amp;lt;-high="high";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 21:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514600#M138764</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-11-19T21:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to reach the contents of my Format Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514602#M138765</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your answer, it worked perfectly well.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 21:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514602#M138765</guid>
      <dc:creator>chinaski</dc:creator>
      <dc:date>2018-11-19T21:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to reach the contents of my Format Library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514604#M138766</link>
      <description>&lt;P&gt;I must thank you for this question. The last time I used proc catalog was Feb2015. Feels like it's been ages &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; It was nice to review all the basics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am glad you chose&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;'s answer. I don't like golf but do like this golfer a lot. lol&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2018 22:09:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-reach-the-contents-of-my-Format-Library/m-p/514604#M138766</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-11-19T22:09:01Z</dc:date>
    </item>
  </channel>
</rss>

