<?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 tell a format's location in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198796#M49670</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code will get information related any versions of the format(s) with the name you supply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; select *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from dictionary.formats&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; where fmtname="NAMEOFFORMAT"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;The name of the format is stored in uppercase. You can link to dictionary.libnames to get the path of the library if needed.&lt;/P&gt;&lt;P&gt;NOTE: To be in the dictionary table the library must be known to the system at the time the program is run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 19:11:28 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2015-04-17T19:11:28Z</dc:date>
    <item>
      <title>How to tell a format's location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198795#M49669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I want know the location of&amp;nbsp; a variable 's format what can I do? please look the example code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Image two people A and B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;people A&lt;/STRONG&gt; create a dataset one use the code below. and&lt;STRONG&gt; people B&lt;/STRONG&gt; &lt;STRONG&gt;don't know&lt;/STRONG&gt; how data set one was created by &lt;STRONG&gt;A&lt;/STRONG&gt;, but B want know its variable 'age 's format location(c:\mylib). how to do it? can we use information from sashelp.vformat? or any other method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname mylib "c:\mylib";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format library=mylib;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value fmt_age&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0-13 = 'AAA'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other ='BBB';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;option fmtsearch=(mylib);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set sashelp.class;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format age fmt_age.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----------&lt;/P&gt;&lt;P&gt;Thank you Jagadishkatam and&amp;nbsp; Hai.kuo: I summarized it:&lt;SPAN class="jive-inline-helpful-answer-links"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;method 1:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table need1 as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a.libname, a.fmtname, b.path from dictionary.formats a, dictionary.libnames b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where UPCASE(FMTNAME)='FMT_AGE' AND A.LIBNAME=B.LIBNAME;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method2&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create table need2 as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a.libname, a.fmtname, b.path from sashelp.vformat a, sashelp.vlibnam b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where UPCASE(FMTNAME)='FMT_AGE' AND A.LIBNAME=B.LIBNAME;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 18:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198795#M49669</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2015-04-17T18:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell a format's location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198796#M49670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This code will get information related any versions of the format(s) with the name you supply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; select *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from dictionary.formats&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; where fmtname="NAMEOFFORMAT"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;The name of the format is stored in uppercase. You can link to dictionary.libnames to get the path of the library if needed.&lt;/P&gt;&lt;P&gt;NOTE: To be in the dictionary table the library must be known to the system at the time the program is run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 19:11:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198796#M49670</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-17T19:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell a format's location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198797#M49671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select a.libname, a.fmtname, b.path from dictionary.formats a, dictionary.libnames b&lt;/P&gt;&lt;P&gt;where UPCASE(FMTNAME)='FMT_AGE' AND A.LIBNAME=B.LIBNAME;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 19:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198797#M49671</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-04-17T19:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell a format's location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198798#M49672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alternatively by datastep also we could find the location of the formats library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set sashelp.vformat;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; where upcase(fmtname)='FORMATNAME';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2015 03:02:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198798#M49672</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2015-04-18T03:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell a format's location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198799#M49673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;method 1:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table need1 as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a.libname, a.fmtname, b.path from dictionary.formats a, dictionary.libnames b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where UPCASE(FMTNAME)='FMT_AGE' AND A.LIBNAME=B.LIBNAME;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method2&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create table need2 as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a.libname, a.fmtname, b.path from sashelp.vformat a, sashelp.vlibnam b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where UPCASE(FMTNAME)='FMT_AGE' AND A.LIBNAME=B.LIBNAME;quit;&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2015 04:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198799#M49673</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2015-04-19T04:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to tell a format's location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198800#M49674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Iam bit confuse in it&lt;/P&gt;&lt;P&gt;&lt;A href="http://buylikesandviews.com/" rel="dofollow" target="_blank"&gt;&lt;STRONG&gt;Buy Cheap Youtube views&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2015 12:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-tell-a-format-s-location/m-p/198800#M49674</guid>
      <dc:creator>laurencarter89</dc:creator>
      <dc:date>2015-04-19T12:37:54Z</dc:date>
    </item>
  </channel>
</rss>

