<?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: Help with simple cntlin proc format example in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330344#M74082</link>
    <description>&lt;P&gt;Use the instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; to make datastep code of your data set and paste that here in a code box opened with {i} icon. There may be something else happening that is not obvious with the way you are pasting your data.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2017 22:26:59 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-02-06T22:26:59Z</dc:date>
    <item>
      <title>Help with simple cntlin proc format example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330285#M74041</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a simple cntlin based proc format defined and it is choking when trying to define it.&amp;nbsp; For the life of me I can't see what it is.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data is:&lt;/P&gt;
&lt;P&gt;Obs&amp;nbsp;&amp;nbsp;&amp;nbsp; EEXCL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FUZZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fmtname&amp;nbsp;&amp;nbsp;&amp;nbsp; type&amp;nbsp;&amp;nbsp;&amp;nbsp; start&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; label&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hlo&lt;/P&gt;
&lt;P&gt;&amp;nbsp;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1E-12&amp;nbsp;&amp;nbsp;&amp;nbsp; binfmt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.50&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.55&amp;nbsp;&amp;nbsp;&amp;nbsp; 50.0% to 54.9%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; L&lt;BR /&gt;&amp;nbsp;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1E-12&amp;nbsp;&amp;nbsp;&amp;nbsp; binfmt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.55&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.60&amp;nbsp;&amp;nbsp;&amp;nbsp; 55.0% to 59.9%&lt;BR /&gt;&amp;nbsp;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1E-12&amp;nbsp;&amp;nbsp;&amp;nbsp; binfmt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.60&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.65&amp;nbsp;&amp;nbsp;&amp;nbsp; 60.0% to 64.9%&lt;BR /&gt;&amp;nbsp;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1E-12&amp;nbsp;&amp;nbsp;&amp;nbsp; binfmt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.65&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.70&amp;nbsp;&amp;nbsp;&amp;nbsp; 65.0% to 69.9%&lt;BR /&gt;&amp;nbsp;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1E-12&amp;nbsp;&amp;nbsp;&amp;nbsp; binfmt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.70&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.75&amp;nbsp;&amp;nbsp;&amp;nbsp; 70.0% to 74.9%&lt;BR /&gt;&amp;nbsp;6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1E-12&amp;nbsp;&amp;nbsp;&amp;nbsp; binfmt&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.75&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.80&amp;nbsp;&amp;nbsp;&amp;nbsp; 75.0% to 79.9%&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; H&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and running this into proc format, the error I get is:&lt;/P&gt;
&lt;P&gt;2 proc format cntlin=temp.binfmt;&lt;/P&gt;
&lt;P&gt;ERROR: These two ranges overlap: LOW-&amp;lt;0.55 and 0.55-&amp;lt;0.6 (fuzz=1E-12).&lt;/P&gt;
&lt;P&gt;ERROR: These two ranges overlap: 0.6-&amp;lt;0.65 and 0.65-&amp;lt;0.7 (fuzz=1E-12).&lt;/P&gt;
&lt;P&gt;2 ! run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What have I overlooked?&amp;nbsp;I did set the fuzz to .0001 with no change.&lt;/P&gt;
&lt;P&gt;Thanks much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 19:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330285#M74041</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2017-02-06T19:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple cntlin proc format example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330296#M74048</link>
      <description>&lt;P&gt;Have you tried it with&amp;nbsp;&lt;EM&gt;fuzz=0&lt;/EM&gt;? (I always use that - any other is problematic)&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 20:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330296#M74048</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-02-06T20:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple cntlin proc format example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330298#M74050</link>
      <description>&lt;P&gt;The error has nothing to do with fuzz, it has to do with defined ranges.&lt;/P&gt;
&lt;P&gt;Because you did not set the SEXCL or EEXCL variables, which say to Start exclude (N is default)&amp;nbsp;or End Exclude (N is&amp;nbsp;default) but you want a Y for the end&amp;nbsp;then the end values were included in all of the ranges.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Look at&amp;nbsp;the output set Work.cntlout&amp;nbsp;from this code:&lt;/P&gt;
&lt;PRE&gt;proc format library=work cntlout=work.cntlout;
value binfmt
.5 - &amp;lt;.55 = '50% to 54.9%'
.55 - .6  = '55% to 59.6%'
;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;to see. The same thing is happening with the .65 value&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 20:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330298#M74050</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-06T20:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple cntlin proc format example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330304#M74054</link>
      <description>Thanks; I think you will see an EEXCL column in the dataset I pasted above with 'Y' in each observation. ?&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Feb 2017 20:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330304#M74054</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2017-02-06T20:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple cntlin proc format example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330309#M74058</link>
      <description>&lt;P&gt;I've just run this code and it worked fine. Is there something else in your original code you may have overlooked?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cntl;
infile cards firstobs=2 dsd dlm=' ';
attrib eexcl type length=$ 1;
attrib fuzz informat=best. format=best.;
attrib fmtname length=$ 8;
attrib start end length=8 format=best.;
attrib label length=$ 30;
attrib hlo length=$ 1;
input eexcl
      fuzz
      fmtname
      type
      start
      end
      label
      hlo;
cards;
EEXCL     FUZZ     fmtname    type    start     end        label         hlo 
Y 1E-12 binfmt N 0.50 0.55 "50.0% to 54.9%" L
Y 1E-12 binfmt N 0.55 0.60 "55.0% to 59.9%"
Y 1E-12 binfmt N 0.60 0.65 "60.0% to 64.9%"
Y 1E-12 binfmt N 0.65 0.70 "65.0% to 69.9%"
Y 1E-12 binfmt N 0.70 0.75 "70.0% to 74.9%"
Y 1E-12 binfmt N 0.75 0.80 "75.0% to 79.9%" H
;
run;

proc format cntlin=cntl;
run;

proc format fmtlib;
select binfmt;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Feb 2017 20:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330309#M74058</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-02-06T20:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple cntlin proc format example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330314#M74060</link>
      <description>&lt;P&gt;Wow. &amp;nbsp;That's just bizarre.&lt;/P&gt;
&lt;P&gt;11 proc print data=temp.binfmt;&lt;BR /&gt;12 run;&lt;/P&gt;
&lt;P&gt;NOTE: There were 6 observations read from the data set TEMP.BINFMT.&lt;BR /&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;BR /&gt; real time 0.03 seconds&lt;BR /&gt; cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;13&lt;BR /&gt;14 proc format cntlin=temp.binfmt;&lt;BR /&gt;ERROR: These two ranges overlap: LOW-&amp;lt;0.55 and 0.55-&amp;lt;0.6 (fuzz=1E-12).&lt;BR /&gt;ERROR: These two ranges overlap: 0.6-&amp;lt;0.65 and 0.65-&amp;lt;0.7 (fuzz=1E-12).&lt;BR /&gt;14 ! run;&lt;/P&gt;
&lt;P&gt;WARNING: RUN statement ignored due to previous errors. Submit QUIT; to terminate the procedure.&lt;BR /&gt;NOTE: PROCEDURE FORMAT used (Total process time):&lt;BR /&gt; real time 0.01 seconds&lt;BR /&gt; cpu time 0.01 seconds&lt;/P&gt;
&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 6 observations read from the data set TEMP.BINFMT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And the output from the proc print:&lt;/P&gt;
&lt;P&gt;The SAS System 13:21 Monday, February 6, 2017 2&lt;/P&gt;
&lt;P&gt;Obs EEXCL FUZZ fmtname type start end label hlo&lt;/P&gt;
&lt;P&gt;1 Y 1E-12 binfmt N 0.50 0.55 50.0% to 54.9% L&lt;BR /&gt; 2 Y 1E-12 binfmt N 0.55 0.60 55.0% to 59.9%&lt;BR /&gt; 3 Y 1E-12 binfmt N 0.60 0.65 60.0% to 64.9%&lt;BR /&gt; 4 Y 1E-12 binfmt N 0.65 0.70 65.0% to 69.9%&lt;BR /&gt; 5 Y 1E-12 binfmt N 0.70 0.75 70.0% to 74.9%&lt;BR /&gt; 6 Y 1E-12 binfmt N 0.75 0.80 75.0% to 79.9% H&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am running on 9.4 TS1M3 on a 64 bit server. ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 20:54:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330314#M74060</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2017-02-06T20:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple cntlin proc format example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330320#M74066</link>
      <description>&lt;P&gt;Can you try running this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format lib=work;
 value binfmt(fuzz=1E-12 min=1 max=40)
 LOW -&amp;lt; 0.55 = "50.0% to 54.9%"
 0.55 -&amp;lt; 0.6 = "55.0% to 59.9%"
 0.6 -&amp;lt; 0.65 = "60.0% to 64.9%"
 0.65 -&amp;lt; 0.7 = "65.0% to 69.9%"
 0.7 -&amp;lt; 0.75 = "70.0% to 74.9%"
 0.75 -&amp;lt; HIGH = "75.0% to 79.9%"
 ;
 run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I took the format that&amp;nbsp;&lt;EM&gt;I&amp;nbsp;&lt;/EM&gt;created it and ran it through my reverse-engineering macro&amp;nbsp;&lt;EM&gt;%genfmt&lt;/EM&gt;. It takes an existing format and creates the code that could have been used to create it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this doesn't work in your environment, there may be some weird option setting which is overriding your requirements.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 21:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330320#M74066</guid>
      <dc:creator>LaurieF</dc:creator>
      <dc:date>2017-02-06T21:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple cntlin proc format example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330344#M74082</link>
      <description>&lt;P&gt;Use the instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; to make datastep code of your data set and paste that here in a code box opened with {i} icon. There may be something else happening that is not obvious with the way you are pasting your data.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2017 22:26:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/330344#M74082</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-06T22:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with simple cntlin proc format example</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/332680#M74906</link>
      <description>The coworker who was working with this one used the Round() function on the start value to bring it within the fuzz value and that worked.  I believe he used the 1e-12 argument for the rounding.  So apparently there was some floating point issues with these values on the server we are on.&lt;BR /&gt;&lt;BR /&gt;Thanks much for the assistance!</description>
      <pubDate>Tue, 14 Feb 2017 16:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-simple-cntlin-proc-format-example/m-p/332680#M74906</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2017-02-14T16:08:13Z</dc:date>
    </item>
  </channel>
</rss>

