<?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 Location of user defined format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817255#M322587</link>
    <description>&lt;P&gt;In one of our program, they have called the user defined format as shown below. Program is working fine and they have not created the format in that program. But I could not locate where this format is created. Any help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;type = put(material, $mattype.);
Category = put(type,$type.);&lt;/PRE&gt;</description>
    <pubDate>Thu, 09 Jun 2022 09:38:54 GMT</pubDate>
    <dc:creator>David_Billa</dc:creator>
    <dc:date>2022-06-09T09:38:54Z</dc:date>
    <item>
      <title>Location of user defined format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817255#M322587</link>
      <description>&lt;P&gt;In one of our program, they have called the user defined format as shown below. Program is working fine and they have not created the format in that program. But I could not locate where this format is created. Any help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;type = put(material, $mattype.);
Category = put(type,$type.);&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jun 2022 09:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817255#M322587</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2022-06-09T09:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Location of user defined format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817258#M322588</link>
      <description>&lt;P&gt;Query DICTIONARY.FORMATS:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select libname, memname, path
from dictionary.formats
where fmtname in ('$MATTYPE','$TYPE')
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jun 2022 09:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817258#M322588</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-09T09:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Location of user defined format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817269#M322591</link>
      <description>&lt;P&gt;As Kurt said. use DICTIONARY, and get the path name by PATHNAME() .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc format ;
value fmt
1='asf';
run;


proc sql;
select * from dictionary.formats where source='C';
quit;

%let path=%sysfunc(pathname(WORK));
%put &amp;amp;=path.;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1654774926853.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72102i0F98F7B93DEEA640/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1654774926853.png" alt="Ksharp_0-1654774926853.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 11:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817269#M322591</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-09T11:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Location of user defined format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817272#M322593</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;It's blank in path name, no values.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 11:49:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817272#M322593</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2022-06-09T11:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Location of user defined format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817274#M322594</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292396"&gt;@David_Billa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;It's blank in path name, no values.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And what is in LIBNAME and MEMNAME?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 12:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817274#M322594</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-09T12:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Location of user defined format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817283#M322595</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; Library Name - WORK and MEMBER NAME - FORMATS&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 12:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817283#M322595</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2022-06-09T12:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Location of user defined format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817288#M322596</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292396"&gt;@David_Billa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; Library Name - WORK and MEMBER NAME - FORMATS&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then the formats were created by code you ran in your current session. You need to work through all the codes you ran after starting your session.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 13:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817288#M322596</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-06-09T13:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Location of user defined format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817649#M322743</link>
      <description>&lt;P&gt;For info, this macro will query the dictionary table and return details of the attributes of all the formats in a table (including path):&amp;nbsp;&amp;nbsp;&lt;A href="https://core.sasjs.io/mp__getformats_8sas.html" target="_blank" rel="noopener"&gt;https://core.sasjs.io/mp__getformats_8sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2022 11:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Location-of-user-defined-format/m-p/817649#M322743</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2022-06-12T11:32:07Z</dc:date>
    </item>
  </channel>
</rss>

