<?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 ro merge a dataset with a format folder in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/how-ro-merge-a-dataset-with-a-format-folder/m-p/704733#M26173</link>
    <description>&lt;P&gt;What do you mean by a "format folder"?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS stores formats in catalogs.&amp;nbsp; The default name for the catalog is FORMATS, but you can use any valid member name for the name of the catalog that contains the formats.&amp;nbsp; So if you have a file named formats.sas7bcat then that is a format catalog.&amp;nbsp; To reference that catalog make a libref that points to the directory (aka "folder") where the file exists.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myfmts 'my format folder';
options insert=(fmtsearch=(myfmts.formats));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If instead you have some SAS code that runs PROC FORMAT and creates the formats then just run the code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "my format folder/formats.sas";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If mean something else then explain in more detail what it is that you have.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2020 14:30:41 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-12-09T14:30:41Z</dc:date>
    <item>
      <title>how ro merge a dataset with a format folder</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-ro-merge-a-dataset-with-a-format-folder/m-p/704727#M26172</link>
      <description>&lt;P&gt;I have a problem that I have worked on for days now.&lt;/P&gt;&lt;P&gt;I Have a big SAS dataset that has a corresponding formatfolder. I have tried to run the dataset without merging it with the formatfolder first. But I keep on getting errors or notes that the format was not found, which is prohibiting the results in showing. I have even tried to start with the options=nofmterr statement but without success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I need to merge the format folder with my dataset to make it work, but I have no idea how to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can not make a merge statement as there are no common variables. The only common parameter is that the label in dataset corresponds with the variable Label_name in the formatfolder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to make a fmtlibname statement, but could not make it work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do I do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 14:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-ro-merge-a-dataset-with-a-format-folder/m-p/704727#M26172</guid>
      <dc:creator>Jannie_D</dc:creator>
      <dc:date>2020-12-09T14:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: how ro merge a dataset with a format folder</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-ro-merge-a-dataset-with-a-format-folder/m-p/704733#M26173</link>
      <description>&lt;P&gt;What do you mean by a "format folder"?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS stores formats in catalogs.&amp;nbsp; The default name for the catalog is FORMATS, but you can use any valid member name for the name of the catalog that contains the formats.&amp;nbsp; So if you have a file named formats.sas7bcat then that is a format catalog.&amp;nbsp; To reference that catalog make a libref that points to the directory (aka "folder") where the file exists.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname myfmts 'my format folder';
options insert=(fmtsearch=(myfmts.formats));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If instead you have some SAS code that runs PROC FORMAT and creates the formats then just run the code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%include "my format folder/formats.sas";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If mean something else then explain in more detail what it is that you have.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 14:30:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-ro-merge-a-dataset-with-a-format-folder/m-p/704733#M26173</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-12-09T14:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: how ro merge a dataset with a format folder</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-ro-merge-a-dataset-with-a-format-folder/m-p/704744#M26174</link>
      <description>&lt;P&gt;I suspect that you have datasets that can be used as CNTLIN datasets for PROC FORMAT. Such datasets would contain columns named fmtname, start, label, type.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 14:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-ro-merge-a-dataset-with-a-format-folder/m-p/704744#M26174</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-12-09T14:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: how ro merge a dataset with a format folder</title>
      <link>https://communities.sas.com/t5/New-SAS-User/how-ro-merge-a-dataset-with-a-format-folder/m-p/704760#M26175</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/359624"&gt;@Jannie_D&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a problem that I have worked on for days now.&lt;/P&gt;
&lt;P&gt;I Have a big SAS dataset that has a corresponding formatfolder. I have tried to run the dataset without merging it with the formatfolder first. But I keep on getting errors or notes that the format was not found, which is prohibiting the results in showing. I have even tried to start with the options=nofmterr statement but without success.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I need to merge the format folder with my dataset to make it work, but I have no idea how to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can not make a merge statement as there are no common variables. The only common parameter is that the label in dataset corresponds with the variable Label_name in the formatfolder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried to make a fmtlibname statement, but could not make it work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do I do?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;Please run this code:&lt;/P&gt;
&lt;PRE&gt;proc options option=fmtsearch;
run;&lt;/PRE&gt;
&lt;P&gt;Your log will show something like:&lt;/P&gt;
&lt;PRE&gt; FMTSEARCH=(WORK LIBRARY)
                   Specifies the order in which format catalogs
                   are searched.

&lt;/PRE&gt;
&lt;P&gt;Copy the result similar to above from your Log and paste into a code box opened on the forum with the &amp;lt;/&amp;gt;.&lt;/P&gt;
&lt;P&gt;Then show use the library name and details about your "format folder".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you do not have 1) the library appear in the FMTSEARCH path as shown in the code then you need to add it as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt; shows.&lt;/P&gt;
&lt;P&gt;FMTSEARCH is where SAS looks for Formats. If your formats are not in one of the places listed it cannot find them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 15:28:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/how-ro-merge-a-dataset-with-a-format-folder/m-p/704760#M26175</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-12-09T15:28:27Z</dc:date>
    </item>
  </channel>
</rss>

