<?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: Inserting symbols in data values in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Inserting-symbols-in-data-values/m-p/50035#M13592</link>
    <description>Thanks andreas_lds , It worked!!!</description>
    <pubDate>Thu, 15 Jul 2010 10:52:05 GMT</pubDate>
    <dc:creator>Anilsk</dc:creator>
    <dc:date>2010-07-15T10:52:05Z</dc:date>
    <item>
      <title>Inserting symbols in data values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Inserting-symbols-in-data-values/m-p/50032#M13589</link>
      <description>I have done a simple computation for percentage as&lt;BR /&gt;
data td.sample;&lt;BR /&gt;
set td.sample;&lt;BR /&gt;
Percentage=(total/3);&lt;BR /&gt;
run;&lt;BR /&gt;
proc print data=td.sample;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
It is working fine, new column Percentage comes up with the right values, but i want to add "%" symbol along with each data values in the Percentage Column&lt;BR /&gt;
&lt;BR /&gt;
like&lt;BR /&gt;
&lt;BR /&gt;
Percentage &lt;BR /&gt;
45.33333% &lt;BR /&gt;
49.66667% &lt;BR /&gt;
55% &lt;BR /&gt;
63% &lt;BR /&gt;
63.66667% &lt;BR /&gt;
65.33333% &lt;BR /&gt;
80.33333% &lt;BR /&gt;
86%&lt;BR /&gt;
&lt;BR /&gt;
and i also want to limit the decimal space for two digits.</description>
      <pubDate>Thu, 15 Jul 2010 09:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Inserting-symbols-in-data-values/m-p/50032#M13589</guid>
      <dc:creator>Anilsk</dc:creator>
      <dc:date>2010-07-15T09:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting symbols in data values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Inserting-symbols-in-data-values/m-p/50033#M13590</link>
      <description>1. using custom format&lt;BR /&gt;
proc format lib=library;&lt;BR /&gt;
   picture perc low-high ='000.00 %';&lt;BR /&gt;
run;&lt;BR /&gt;
data Test1;&lt;BR /&gt;
    c1=1.1234;&lt;BR /&gt;
run;&lt;BR /&gt;
data Test2;&lt;BR /&gt;
    format c2 perc.;&lt;BR /&gt;
    set Test1;&lt;BR /&gt;
    c2=c1;    &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
2. read about percentw.d format</description>
      <pubDate>Thu, 15 Jul 2010 10:03:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Inserting-symbols-in-data-values/m-p/50033#M13590</guid>
      <dc:creator>DataShare</dc:creator>
      <dc:date>2010-07-15T10:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting symbols in data values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Inserting-symbols-in-data-values/m-p/50034#M13591</link>
      <description>You can change the value of the calculated variable to include the %-symbol, but I recommend using the format statement to change the way the value is displayed. &lt;BR /&gt;
[pre]data td.sample;&lt;BR /&gt;
  set td.sample;&lt;BR /&gt;
  format Percentage percent10.2;&lt;BR /&gt;
  Percentage=(total/300);&lt;BR /&gt;
run;[/pre]&lt;BR /&gt;
Please notice the description of the format found in the SAS online documentation:&lt;BR /&gt;
&lt;I&gt;The PERCENTw.d format multiplies values by 100, formats them the same as the BESTw.d format, and adds a percent sign (%) to the end of the formatted value, while it encloses negative values in parentheses.&lt;/I&gt;</description>
      <pubDate>Thu, 15 Jul 2010 10:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Inserting-symbols-in-data-values/m-p/50034#M13591</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2010-07-15T10:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting symbols in data values</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Inserting-symbols-in-data-values/m-p/50035#M13592</link>
      <description>Thanks andreas_lds , It worked!!!</description>
      <pubDate>Thu, 15 Jul 2010 10:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Inserting-symbols-in-data-values/m-p/50035#M13592</guid>
      <dc:creator>Anilsk</dc:creator>
      <dc:date>2010-07-15T10:52:05Z</dc:date>
    </item>
  </channel>
</rss>

