<?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 PROC FORMAT CNTLIN in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-CNTLIN/m-p/30142#M7109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a situation when i am creating format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Sql;&lt;/P&gt;&lt;P&gt;create table test1 as&lt;/P&gt;&lt;P&gt;select cntyname,cnty_id&lt;/P&gt;&lt;P&gt;from cnty table&lt;/P&gt;&lt;P&gt;where cnty_id in (select cnty_id from test);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test2;&lt;/P&gt;&lt;P&gt;set test1;&lt;/P&gt;&lt;P&gt;retain fmtname 'cnty'&lt;/P&gt;&lt;P&gt;rename cnty_id=start;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rename&amp;nbsp; cntyname=label;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format library=format&amp;nbsp; cntlin=cnty;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This runs well when i am having data in test1 but when i am having no data it says it cannot load format cnty.Even though i am having no data it should not throw an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me how to avoid this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Mar 2012 19:36:16 GMT</pubDate>
    <dc:creator>JasonNC</dc:creator>
    <dc:date>2012-03-13T19:36:16Z</dc:date>
    <item>
      <title>PROC FORMAT CNTLIN</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-CNTLIN/m-p/30142#M7109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a situation when i am creating format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proc Sql;&lt;/P&gt;&lt;P&gt;create table test1 as&lt;/P&gt;&lt;P&gt;select cntyname,cnty_id&lt;/P&gt;&lt;P&gt;from cnty table&lt;/P&gt;&lt;P&gt;where cnty_id in (select cnty_id from test);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test2;&lt;/P&gt;&lt;P&gt;set test1;&lt;/P&gt;&lt;P&gt;retain fmtname 'cnty'&lt;/P&gt;&lt;P&gt;rename cnty_id=start;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rename&amp;nbsp; cntyname=label;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format library=format&amp;nbsp; cntlin=cnty;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This runs well when i am having data in test1 but when i am having no data it says it cannot load format cnty.Even though i am having no data it should not throw an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help me how to avoid this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 19:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-CNTLIN/m-p/30142#M7109</guid>
      <dc:creator>JasonNC</dc:creator>
      <dc:date>2012-03-13T19:36:16Z</dc:date>
    </item>
    <item>
      <title>PROC FORMAT CNTLIN</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-CNTLIN/m-p/30143#M7110</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;create table cntyFmt as&lt;/P&gt;&lt;P&gt;select "cnty" as fmtname, cntyname as label, cnty_id as start&lt;/P&gt;&lt;P&gt;from cnty&lt;/P&gt;&lt;P&gt;where cnty_id in (select cnty_id from test);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format library=format cntlin=cntyFmt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 19:40:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-CNTLIN/m-p/30143#M7110</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-03-13T19:40:58Z</dc:date>
    </item>
    <item>
      <title>PROC FORMAT CNTLIN</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-CNTLIN/m-p/30144#M7111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oops i got it previously i was using &lt;/P&gt;&lt;P&gt;proc format cntlin=cnty;&lt;/P&gt;&lt;P&gt;so i was getting that problem&lt;/P&gt;&lt;P&gt;Now i am using &lt;/P&gt;&lt;P&gt;Proc format library=format&lt;/P&gt;&lt;P&gt;cntlin=cnty;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i used the above one i am not getting that problem. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 19:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-CNTLIN/m-p/30144#M7111</guid>
      <dc:creator>JasonNC</dc:creator>
      <dc:date>2012-03-13T19:46:33Z</dc:date>
    </item>
    <item>
      <title>PROC FORMAT CNTLIN</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-CNTLIN/m-p/30145#M7112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey But i think we have to use cntlin=cnty instead of cntyFmt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 19:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-CNTLIN/m-p/30145#M7112</guid>
      <dc:creator>JasonNC</dc:creator>
      <dc:date>2012-03-13T19:49:19Z</dc:date>
    </item>
    <item>
      <title>PROC FORMAT CNTLIN</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-CNTLIN/m-p/30146#M7113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; With PROC SQL you create the table called cntyFmt with the proper variables : FMTNAME, LABEL and START and then use CNTLIN=cntyFmt to tell PROC FORMAT the name of the format control dataset. You could use any name instead of cntyFmt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Mar 2012 19:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-FORMAT-CNTLIN/m-p/30146#M7113</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-03-13T19:55:34Z</dc:date>
    </item>
  </channel>
</rss>

