<?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: Percentage in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878301#M346989</link>
    <description>&lt;P&gt;In SAS, percentages are numeric ratios with a PERCENT format attached. Check with your DB designers how they want such values.&lt;/P&gt;
&lt;P&gt;Do you write the data to DB/2 with SAS/ACCESS, or do you use text files for the data transfer?&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2023 20:04:24 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-05-30T20:04:24Z</dc:date>
    <item>
      <title>Percentage</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878290#M346985</link>
      <description>I have data output in %, how do i convert it such that i can load into db2 without losing any meaning</description>
      <pubDate>Tue, 30 May 2023 18:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878290#M346985</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-05-30T18:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878301#M346989</link>
      <description>&lt;P&gt;In SAS, percentages are numeric ratios with a PERCENT format attached. Check with your DB designers how they want such values.&lt;/P&gt;
&lt;P&gt;Do you write the data to DB/2 with SAS/ACCESS, or do you use text files for the data transfer?&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 20:04:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878301#M346989</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-05-30T20:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878335#M347009</link>
      <description>I use proc export to csv</description>
      <pubDate>Tue, 30 May 2023 23:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878335#M347009</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-05-30T23:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878339#M347012</link>
      <description>&lt;P&gt;If you attach the PERCENT format to a SAS variable, then percentages under 100 must be defined as a decimal less than 1. Your CSV will then contain contain values like below with a % suffix:&lt;/P&gt;
&lt;PRE&gt;28         data _null_;
29           percentage = 0.1234;
30           format percentage percent8.2;
31           put percentage=;
32         run;

percentage=12.34%
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds&lt;/PRE&gt;
&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;says, check with your DB2 admin to confirm the required data format.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 01:26:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878339#M347012</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-05-31T01:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878354#M347019</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I use proc export to csv&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then you need to ask your DB people how they want the data presented in the csv file. Most probably, they don't want the percent sign, but the percent value (not the ratio), so you would need to multiply by 100 and use a standard numeric format.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 06:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878354#M347019</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-05-31T06:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878355#M347020</link>
      <description>&lt;P&gt;Oh yeah, and don't use PROC EXPORT when you need to do special conversions. Write the DATA step yourself.&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 06:23:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Percentage/m-p/878355#M347020</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-05-31T06:23:50Z</dc:date>
    </item>
  </channel>
</rss>

