<?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 cntlout numeric informat label loses precision in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/cntlout-numeric-informat-label-loses-precision/m-p/45387#M9381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;data_null_; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for looking at my problem.&lt;/P&gt;&lt;P&gt;my result _was_ a label value, left-aligned, formatted with (I think) best3. (or perhaps best2. ) showing never more than one decimal place.&lt;/P&gt;&lt;P&gt;Starting afresh - in a new sas enterprise guide session, the proper behaviour was restored.&amp;nbsp; (I'll have to get used to making that kind of re-start more often)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2011 12:50:07 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2011-08-09T12:50:07Z</dc:date>
    <item>
      <title>cntlout numeric informat label loses precision</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cntlout-numeric-informat-label-loses-precision/m-p/45385#M9379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've also opened a track on this question &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How can I persuade proc format to report (through FMTLIB and CNTLOUT) the full precision of the label returned for a numeric informat range?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;With this code you can demonstrate the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;P&gt;proc format cntlout= cntlo ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; invalue testrat XXX = 1.23456789 ;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; select @testrat ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;option nocenter ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title 'testing cntlout label precision for numeric informat';&lt;/P&gt;&lt;P&gt;title4 "LABEL should be 1.23456789 found %sysfunc( inputn( XXX, testrat ))" ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print width= full ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; id&amp;nbsp;&amp;nbsp; fmtname start label ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print width=full ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fmtname start label ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format label $hex30. ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;I am running SAS9.2 on unix so it would be nice to hear if your platform performs better&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style=": ; color: #000080; font-size: 8pt; font-family: arial,helvetica,sans-serif;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The major concern I have is the confidence we assume&amp;nbsp; migrating a format catalog between SAS releases and platforms using CNTLOUT on the old platform and CNTLIN on the new. &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;﻿ &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;hth&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;peterC&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 8pt; font-family: Courier New;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 09:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cntlout-numeric-informat-label-loses-precision/m-p/45385#M9379</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-08-09T09:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: cntlout numeric informat label loses precision</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cntlout-numeric-informat-label-loses-precision/m-p/45386#M9380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran your program on windows &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: black; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: black; font-family: 'SAS Monospace';"&gt;AUTOMATIC SYSSCP WIN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: black; font-family: 'SAS Monospace';"&gt;AUTOMATIC SYSSCPL W32_VSPRO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: black; font-family: 'SAS Monospace';"&gt;AUTOMATIC SYSVER 9.2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: black; font-family: 'SAS Monospace';"&gt;AUTOMATIC SYSVLONG 9.02.02M0P011509&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: black; font-family: 'SAS Monospace';"&gt;AUTOMATIC SYSVLONG4 9.02.02M0P01152009&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On windows the LABEL variable is $40 and the value is right justified.&amp;nbsp; $hex30 is not wide enough to display the value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The title with INPUT function returns this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: blue; font-family: 'SAS Monospace';"&gt;LABEL should be 1.23456789 found 1.23456789&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: blue; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: blue; font-family: 'SAS Monospace';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What do you get?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 12:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cntlout-numeric-informat-label-loses-precision/m-p/45386#M9380</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-08-09T12:07:32Z</dc:date>
    </item>
    <item>
      <title>cntlout numeric informat label loses precision</title>
      <link>https://communities.sas.com/t5/SAS-Programming/cntlout-numeric-informat-label-loses-precision/m-p/45387#M9381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;data_null_; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for looking at my problem.&lt;/P&gt;&lt;P&gt;my result _was_ a label value, left-aligned, formatted with (I think) best3. (or perhaps best2. ) showing never more than one decimal place.&lt;/P&gt;&lt;P&gt;Starting afresh - in a new sas enterprise guide session, the proper behaviour was restored.&amp;nbsp; (I'll have to get used to making that kind of re-start more often)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 12:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/cntlout-numeric-informat-label-loses-precision/m-p/45387#M9381</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-08-09T12:50:07Z</dc:date>
    </item>
  </channel>
</rss>

