<?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: Using cntlin in proc format when one of the values is 'LOW' in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-cntlin-in-proc-format-when-one-of-the-values-is-LOW/m-p/362207#M85551</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;: Worked like a charm!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Art&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 27 May 2017 16:48:35 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2017-05-27T16:48:35Z</dc:date>
    <item>
      <title>Using cntlin in proc format when one of the values is 'LOW'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-cntlin-in-proc-format-when-one-of-the-values-is-LOW/m-p/362185#M85543</link>
      <description>&lt;P&gt;Ran into an interesting problem last night when using the cntlin option with proc format. The following code produces an error:&lt;/P&gt;
&lt;PRE&gt;data for_format;
  input sym_root $;
  cards;
AAA
BBB
LOW
ZZZ
;
run;

data for_format;
  set for_format (rename=(sym_root=start));
  retain fmtname "$labelfmt" type "C";
  label=_n_;
run;

proc format cntlin = for_format;
run ;
&lt;/PRE&gt;
&lt;P&gt;Anyone know how one can include the value 'LOW' in such a case? My work around was to recode 'LOW' to be 'LOWW', but I'd rather no have to change the variable's value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 15:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-cntlin-in-proc-format-when-one-of-the-values-is-LOW/m-p/362185#M85543</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-27T15:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using cntlin in proc format when one of the values is 'LOW'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-cntlin-in-proc-format-when-one-of-the-values-is-LOW/m-p/362201#M85547</link>
      <description>&lt;P&gt;You need to add the HLO variable to your control dataset to prevent SAS from trying to detect the LOW HIGH keywords from the text of the START/END values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data for_format;
  set have (rename=(sym_root=start));
  retain fmtname "$labelfmt" type "C" hlo '   ';
  label=_n_;
run;
proc format cntlin = for_format;
run ;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;One way to test is to make the format using code and output the control dataset.&lt;/P&gt;
&lt;P&gt;Then try keeping&amp;nbsp;different subsets of the variables in that control dataset to pass back into PROC FORMAT to figure out the minimum set of variables that are needed.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format cntlout=want;
  value $labelfmt
  'AAA'='1'
  'BBB'='2'
  'LOW'='3'
  'ZZZ'='4'
  ;
run;

proc format cntlin=want(keep=fmtname type start label hlo); 
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 May 2017 16:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-cntlin-in-proc-format-when-one-of-the-values-is-LOW/m-p/362201#M85547</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-05-27T16:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using cntlin in proc format when one of the values is 'LOW'</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-cntlin-in-proc-format-when-one-of-the-values-is-LOW/m-p/362207#M85551</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;: Worked like a charm!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Art&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 16:48:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-cntlin-in-proc-format-when-one-of-the-values-is-LOW/m-p/362207#M85551</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-05-27T16:48:35Z</dc:date>
    </item>
  </channel>
</rss>

