<?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: Precision Issue in the Listings_with screenshots attached in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Precision-Issue-in-the-Listings/m-p/456575#M115659</link>
    <description>&lt;P&gt;Hi: Please show ALL your code. Your output looks like RTF output with the JOURNAL style, but you do NOT show any RTF statements. And, without any DATA to use, it is impossible to replicate your results or try to see what you mean. You do NOT show your COLUMN statement and you seem to have the wrong idea about what goes in the DEFINE statement.&lt;BR /&gt;&lt;BR /&gt;You have this:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;define xxx / &lt;FONT color="#FF0000"&gt;center flow&lt;/FONT&gt; "xxx Dose "&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;style(column)=[cellwidth=6% asis=on]&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;style(header)=[just=center] format=7.0;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;CENTER and FLOW are LISTING only options. If you want the data cell values to be centered, I recommend against using the CENTER option here. I don't understand, based on the data you show, why you are using the FLOW option, at all. That is a LISTING only option and irrelevant for any destination that uses STYLE options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the HEADER is just the string 'xxx Dose' and the column is the for the formatted data value -- why do you have ASIS=ON for the data column? Are you using the SPLIT= option in PROC REPORT to get the headers like Actual Time split on 2 lines? If you are trying to force the text string to split using cellwidth, this is the wrong technique.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you want the numbers in the data cells centered, you need to ALSO move just=c into the style override for the COLUMN too. Also, why are you specifying a % for cellwidth? That will force RTF to convert from percent to TWIPS (twentieths of a printer's point) which is less reliable that specifying the size in inches or centimeters or just leave it off and see what you get before you start fiddling with settings. I doubt you need ASIS=ON and you probably don't need the CELLWIDTH either.&lt;BR /&gt;&lt;BR /&gt;Seeing ALL your code and having some test data would be the best way to enable others to help you.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using this code, without FLOW or ASIS=ON or CELLWIDTH, I get centering for both the header and the data cells:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="center_data_values.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20055i6F45BCAEBA896169/image-size/large?v=v2&amp;amp;px=999" role="button" title="center_data_values.png" alt="center_data_values.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Apr 2018 16:12:41 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2018-04-23T16:12:41Z</dc:date>
    <item>
      <title>Precision Issue in the Listings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Precision-Issue-in-the-Listings/m-p/456552#M115655</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have been working on the listings and I see an issue with the justification of one of test results when precision of 7 is used.&lt;/P&gt;&lt;P&gt;Imagine the data for test results is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;20.000&lt;/P&gt;&lt;P&gt;30.000&lt;/P&gt;&lt;P&gt;40.000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output expected is :&lt;/P&gt;&lt;P&gt;20&lt;/P&gt;&lt;P&gt;30&lt;/P&gt;&lt;P&gt;40&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good news is output is as expected but not center justified. The following is the code used in Proc Report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;define xxx / center flow "xxx Dose "&lt;BR /&gt;style(column)=[cellwidth=6% asis=on]&lt;BR /&gt;style(header)=[just=center] format=7.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an alternative where the data can be displayed in the center as the expected output?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RupaM&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 15:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Precision-Issue-in-the-Listings/m-p/456552#M115655</guid>
      <dc:creator>RupaM3</dc:creator>
      <dc:date>2018-04-23T15:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Precision Issue in the Listings</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Precision-Issue-in-the-Listings/m-p/456555#M115656</link>
      <description>&lt;P&gt;Works fine for me with this example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=sashelp.class nowd;
column name age weight;
define name /display;
define age / center display 'Age (yrs)';
define weight / right format=8.1;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You'll need to provide more information to illustrate how this is not working for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/206253"&gt;@RupaM3&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have been working on the listings and I see an issue with the justification of one of test results when precision of 7 is used.&lt;/P&gt;
&lt;P&gt;Imagine the data for test results is as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;20.000&lt;/P&gt;
&lt;P&gt;30.000&lt;/P&gt;
&lt;P&gt;40.000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output expected is :&lt;/P&gt;
&lt;P&gt;20&lt;/P&gt;
&lt;P&gt;30&lt;/P&gt;
&lt;P&gt;40&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good news is output is as expected but not center justified. The following is the code used in Proc Report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;define xxx / center flow "xxx Dose "&lt;BR /&gt;style(column)=[cellwidth=6% asis=on]&lt;BR /&gt;style(header)=[just=center] format=7.0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there an alternative where the data can be displayed in the center as the expected output?&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;RupaM&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 15:16:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Precision-Issue-in-the-Listings/m-p/456555#M115656</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-23T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Precision Issue in the Listings_with screenshots attached</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Precision-Issue-in-the-Listings/m-p/456571#M115658</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data gets wrapped and the output is not center justified. Is this commonly expected?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the screenshots of two conditions where Format wasn't applied and was applied.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rupa&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 15:52:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Precision-Issue-in-the-Listings/m-p/456571#M115658</guid>
      <dc:creator>RupaM3</dc:creator>
      <dc:date>2018-04-23T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Precision Issue in the Listings_with screenshots attached</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Precision-Issue-in-the-Listings/m-p/456575#M115659</link>
      <description>&lt;P&gt;Hi: Please show ALL your code. Your output looks like RTF output with the JOURNAL style, but you do NOT show any RTF statements. And, without any DATA to use, it is impossible to replicate your results or try to see what you mean. You do NOT show your COLUMN statement and you seem to have the wrong idea about what goes in the DEFINE statement.&lt;BR /&gt;&lt;BR /&gt;You have this:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;define xxx / &lt;FONT color="#FF0000"&gt;center flow&lt;/FONT&gt; "xxx Dose "&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;style(column)=[cellwidth=6% asis=on]&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;style(header)=[just=center] format=7.0;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;CENTER and FLOW are LISTING only options. If you want the data cell values to be centered, I recommend against using the CENTER option here. I don't understand, based on the data you show, why you are using the FLOW option, at all. That is a LISTING only option and irrelevant for any destination that uses STYLE options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the HEADER is just the string 'xxx Dose' and the column is the for the formatted data value -- why do you have ASIS=ON for the data column? Are you using the SPLIT= option in PROC REPORT to get the headers like Actual Time split on 2 lines? If you are trying to force the text string to split using cellwidth, this is the wrong technique.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you want the numbers in the data cells centered, you need to ALSO move just=c into the style override for the COLUMN too. Also, why are you specifying a % for cellwidth? That will force RTF to convert from percent to TWIPS (twentieths of a printer's point) which is less reliable that specifying the size in inches or centimeters or just leave it off and see what you get before you start fiddling with settings. I doubt you need ASIS=ON and you probably don't need the CELLWIDTH either.&lt;BR /&gt;&lt;BR /&gt;Seeing ALL your code and having some test data would be the best way to enable others to help you.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using this code, without FLOW or ASIS=ON or CELLWIDTH, I get centering for both the header and the data cells:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="center_data_values.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20055i6F45BCAEBA896169/image-size/large?v=v2&amp;amp;px=999" role="button" title="center_data_values.png" alt="center_data_values.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 16:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Precision-Issue-in-the-Listings/m-p/456575#M115659</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-04-23T16:12:41Z</dc:date>
    </item>
  </channel>
</rss>

