<?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 Read in Existing format? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Read-in-Existing-format/m-p/94814#M26804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try submitting the FMTSEARCH= system option as shown below in your SAS session before opening the data set in SAS Explorer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIBNAME TCCTM 'C:\Data';&lt;/P&gt;&lt;P&gt;options fmtsearch=(TCCTM);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS will now look in the TCCTM library for the format in the file: formats.sas7bcat and the formatted values should appear instead of the error when you attempt to open the data set from the Explorer window. For more helpful details about format catalogs, please see: Usage Note &lt;EM&gt;37332: &lt;/EM&gt;General information about storing and retrieving user-defined formats &lt;SPAN style="padding: 0px 5px;"&gt;&lt;A href="http://support.sas.com/kb/37332" target="_blank"&gt;http://support.sas.com/kb/37332&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Sep 2013 19:22:38 GMT</pubDate>
    <dc:creator>jodilynne</dc:creator>
    <dc:date>2013-09-26T19:22:38Z</dc:date>
    <item>
      <title>How to Read in Existing format?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Read-in-Existing-format/m-p/94812#M26802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I just received a dataset with formats from someone. I can't seem to read in the formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have received 2 files data.sas7bdat and formats.sas7bcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I wrote the following code:&lt;/P&gt;&lt;P&gt;LIBNAME TCCTM 'C:\Data';&lt;/P&gt;&lt;P&gt;LIBNAME TCCTMFMT 'C:\Data';&lt;/P&gt;&lt;P&gt;proc format Library=TCCTMFMT.formats; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It ran with no error. But when I open up the dataset I get a series of "Errors: Format FORMAT1 not found or couldn't be loaded for variable VAR1."&lt;/P&gt;&lt;P&gt;I have also tried the CNTLIN command instead of the library command and I get the following error: ERROR: File TCCTM.FORMATS.DATA does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did open the format file in SAS (using the SAS explorer), I see the FORMAT1 does exist in the file. So I am thinking I am reading in the format incorrectly. Can someone tell me how to do it correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, how can I tell what value is associated with each format? for example, if the format for education is 1=high school, 2=college 3=grad school.. I know with formats, I will only see the naming. How do I see numerical value associated with the format without removing the format?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 19:02:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Read-in-Existing-format/m-p/94812#M26802</guid>
      <dc:creator>Tpham</dc:creator>
      <dc:date>2013-09-26T19:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read in Existing format?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Read-in-Existing-format/m-p/94813#M26803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use the FMTSEARCH system option to specify the search order for format libraries if the format libraries are not in the Work library or the Library library.&lt;/P&gt;&lt;P&gt;Add this options statement :&lt;/P&gt;&lt;P&gt;options fmtsearch=(tcctm tcctmfmt);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 19:10:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Read-in-Existing-format/m-p/94813#M26803</guid>
      <dc:creator>EM_sas</dc:creator>
      <dc:date>2013-09-26T19:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read in Existing format?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Read-in-Existing-format/m-p/94814#M26804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try submitting the FMTSEARCH= system option as shown below in your SAS session before opening the data set in SAS Explorer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LIBNAME TCCTM 'C:\Data';&lt;/P&gt;&lt;P&gt;options fmtsearch=(TCCTM);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS will now look in the TCCTM library for the format in the file: formats.sas7bcat and the formatted values should appear instead of the error when you attempt to open the data set from the Explorer window. For more helpful details about format catalogs, please see: Usage Note &lt;EM&gt;37332: &lt;/EM&gt;General information about storing and retrieving user-defined formats &lt;SPAN style="padding: 0px 5px;"&gt;&lt;A href="http://support.sas.com/kb/37332" target="_blank"&gt;http://support.sas.com/kb/37332&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 19:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Read-in-Existing-format/m-p/94814#M26804</guid>
      <dc:creator>jodilynne</dc:creator>
      <dc:date>2013-09-26T19:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to Read in Existing format?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-Read-in-Existing-format/m-p/94815#M26805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to see the contents of each format, add one word to the end of your PROC FORMAT statement:&amp;nbsp; FMTLIB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Sep 2013 19:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-Read-in-Existing-format/m-p/94815#M26805</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-09-26T19:35:09Z</dc:date>
    </item>
  </channel>
</rss>

