<?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: Proc format with cntlin option in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-format-with-cntlin-option/m-p/32128#M7707</link>
    <description>A Google advanced search of the SAS support &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website yielded several matches, some SAS-hosted documentation and some technical papers on the topic.  Here's the search argument - the site: parameter limits the search:&lt;BR /&gt;
&lt;BR /&gt;
proc format cntlin other site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Another discovery technique would be to create a simple format with PROC FORMAT and VALUE, coding an OTHER= , and then run PROC FORMAT with CNTLOUT= and use PROC PRINT to see the SAS-generated results.&lt;BR /&gt;
&lt;BR /&gt;
You will want to explore using the HLO='O' variable value, leaving START as blank, and assigning some desired LABEL variable value -- this would be an extra observation.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Thu, 14 May 2009 18:03:15 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-05-14T18:03:15Z</dc:date>
    <item>
      <title>Proc format with cntlin option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-format-with-cntlin-option/m-p/32127#M7706</link>
      <description>I'm reading data from an xl file and then run it through the data step below in preparation for the proc format that follows it.  Works the way it should.&lt;BR /&gt;
The data that I apply this format to has values that are not in the start list.  I'd like to group these into a category called 'Other'.  I can add a label = 'Other' but I don't know how to 'wildcard' the start value.  If you can help, please do.  Thanks.&lt;BR /&gt;
&lt;BR /&gt;
data CPL4DelCd;                                                                                                                         &lt;BR /&gt;
  set _4CPLDELAYCODES ;                                                                                                                 &lt;BR /&gt;
  fmtname='$CPL4Dly';                                                                                                                   &lt;BR /&gt;
  Label=AMDelayCd1||AMDelayCd2;                                                                                                         &lt;BR /&gt;
  Start=Dly_Class_Cd||Dly_Type_Cd||Dly_Reason_Cd;  &lt;BR /&gt;
                                                                                     &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
proc format cntlin=CPL4DelCd;                                                                                                           &lt;BR /&gt;
run;</description>
      <pubDate>Thu, 14 May 2009 17:51:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-format-with-cntlin-option/m-p/32127#M7706</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2009-05-14T17:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format with cntlin option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-format-with-cntlin-option/m-p/32128#M7707</link>
      <description>A Google advanced search of the SAS support &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website yielded several matches, some SAS-hosted documentation and some technical papers on the topic.  Here's the search argument - the site: parameter limits the search:&lt;BR /&gt;
&lt;BR /&gt;
proc format cntlin other site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
Another discovery technique would be to create a simple format with PROC FORMAT and VALUE, coding an OTHER= , and then run PROC FORMAT with CNTLOUT= and use PROC PRINT to see the SAS-generated results.&lt;BR /&gt;
&lt;BR /&gt;
You will want to explore using the HLO='O' variable value, leaving START as blank, and assigning some desired LABEL variable value -- this would be an extra observation.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Thu, 14 May 2009 18:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-format-with-cntlin-option/m-p/32128#M7707</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-14T18:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format with cntlin option</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-format-with-cntlin-option/m-p/32129#M7708</link>
      <description>Thanks Scott.  The HLO option does the trick.  Shown below.&lt;BR /&gt;
&lt;BR /&gt;
data CPL4DelCd end=last; &lt;BR /&gt;
set _4CPLDELAYCODES ; &lt;BR /&gt;
fmtname='$CPL4Dly'; &lt;BR /&gt;
Label=AMDelayCd1||AMDelayCd2; &lt;BR /&gt;
Start=Dly_Class_Cd||Dly_Type_Cd||Dly_Reason_Cd; &lt;BR /&gt;
output;&lt;BR /&gt;
&lt;BR /&gt;
	if last then do;&lt;BR /&gt;
	hlo='O';  /* upper case letter O  */&lt;BR /&gt;
      label='Othr';&lt;BR /&gt;
      output;&lt;BR /&gt;
   end;&lt;BR /&gt;
&lt;BR /&gt;
run;

edit by Bill 14May2009 14:19 EDT&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: Bill</description>
      <pubDate>Thu, 14 May 2009 18:16:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-format-with-cntlin-option/m-p/32129#M7708</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2009-05-14T18:16:58Z</dc:date>
    </item>
  </channel>
</rss>

