<?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: How to manage fraction formats (not reduced)? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-manage-fraction-formats-not-reduced/m-p/510709#M32429</link>
    <description>OK, so there is options for such raw presentation of the data.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;</description>
    <pubDate>Tue, 06 Nov 2018 09:31:04 GMT</pubDate>
    <dc:creator>HS2</dc:creator>
    <dc:date>2018-11-06T09:31:04Z</dc:date>
    <item>
      <title>How to manage fraction formats (not reduced)?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-manage-fraction-formats-not-reduced/m-p/510689#M32418</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on a variable that needs to be presented in fraction format, not decimal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know there is an existing&amp;nbsp; format=FRACT. However it presents the reduced fraction which I don’t want to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the derived data (Z) to be as follow&amp;nbsp;:&lt;/P&gt;&lt;P&gt;X&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;Y&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25&lt;/P&gt;&lt;P&gt;Z&amp;nbsp; &amp;nbsp;2/4&amp;nbsp;&amp;nbsp;&amp;nbsp; 5/25 and NOT 1/2&amp;nbsp; 1/5&lt;/P&gt;&lt;P&gt;Can you please advise on this, knowing that I need the fraction for numerical calculation, so I cannot consider the CATX function.&lt;/P&gt;&lt;P&gt;I am using SAS 9.4&amp;nbsp; - ANALYTIC PRO WX6.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 06:59:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-manage-fraction-formats-not-reduced/m-p/510689#M32418</guid>
      <dc:creator>HS2</dc:creator>
      <dc:date>2018-11-06T06:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage fraction formats (not reduced)?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-manage-fraction-formats-not-reduced/m-p/510695#M32421</link>
      <description>&lt;P&gt;The value created by the calculation 5/25 is 0.2, and that's all that SAS can see when the format is applied. It could be 1/5, 5/25, 20/100, or any combination from an infinite list, and there's no way to guess which one you want at the moment. SAS just defaults to the most simple one.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 08:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-manage-fraction-formats-not-reduced/m-p/510695#M32421</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-11-06T08:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage fraction formats (not reduced)?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-manage-fraction-formats-not-reduced/m-p/510708#M32428</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/244786"&gt;@HS2&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the idea of using a format starts getting difficult when different pairs (X, Y) demand different labels (=formatted values) for the &lt;EM&gt;same&lt;/EM&gt; numeric value of Z, e.g. (2, 4)&amp;nbsp;and (3, 6).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My recommendation: Create a character variable, say ZC, in addition to the existing numeric variable Z and store the fractions (created from numerator and denominator using CATX as you've suggested) in ZC. Then you can perform calculations with Z and use ZC in your reports. Of course, it's your responsibility to make sure that the values of Z and ZC are consistent.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2018 09:13:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-manage-fraction-formats-not-reduced/m-p/510708#M32428</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-11-06T09:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to manage fraction formats (not reduced)?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-manage-fraction-formats-not-reduced/m-p/510709#M32429</link>
      <description>OK, so there is options for such raw presentation of the data.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Nov 2018 09:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-manage-fraction-formats-not-reduced/m-p/510709#M32429</guid>
      <dc:creator>HS2</dc:creator>
      <dc:date>2018-11-06T09:31:04Z</dc:date>
    </item>
  </channel>
</rss>

