<?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: Creating percentages from decimals in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558599#M10127</link>
    <description>&lt;P&gt;Thank you for your reply. However, since I have many variables and many observations, it will be hard to compute every number and then to place it in the code. Isn't it possible to just select the variables and then to include function format percent.;?&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2019 12:44:41 GMT</pubDate>
    <dc:creator>Aleksandar</dc:creator>
    <dc:date>2019-05-14T12:44:41Z</dc:date>
    <item>
      <title>Creating percentages from decimals</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558579#M10120</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created certain variables that are expressed in the decimals. However, I would like to express them as percentages (for example instead of 0.1 I would like to express it as 10%).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the function that I should use?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are the variables that I have created expressed in decimals:&lt;/P&gt;&lt;P&gt;IR_200006m_I&lt;BR /&gt;IR_20000_1year_I&lt;BR /&gt;IR_20000_2years_I&lt;BR /&gt;IR_20000_5years_I&lt;BR /&gt;IR_20000_10years_I.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which code to use to express them in percentages?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Aleksandar&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 11:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558579#M10120</guid>
      <dc:creator>Aleksandar</dc:creator>
      <dc:date>2019-05-14T11:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating percentages from decimals</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558580#M10121</link>
      <description>&lt;P&gt;Use the &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000205182.htm" target="_self"&gt;Percent. Format&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 num=0.1;
 format num percent.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2019 11:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558580#M10121</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-14T11:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating percentages from decimals</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558591#M10126</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/271047"&gt;@Aleksandar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created certain variables that are expressed in the decimals. However, I would like to express them as percentages (for example instead of 0.1 I would like to express it as 10%).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the function that I should use?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These are the variables that I have created expressed in decimals:&lt;/P&gt;
&lt;P&gt;IR_200006m_I&lt;BR /&gt;IR_20000_1year_I&lt;BR /&gt;IR_20000_2years_I&lt;BR /&gt;IR_20000_5years_I&lt;BR /&gt;IR_20000_10years_I.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Which code to use to express them in percentages?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance,&lt;/P&gt;
&lt;P&gt;Aleksandar&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And what are the contents of these variables?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 12:00:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558591#M10126</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-14T12:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating percentages from decimals</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558599#M10127</link>
      <description>&lt;P&gt;Thank you for your reply. However, since I have many variables and many observations, it will be hard to compute every number and then to place it in the code. Isn't it possible to just select the variables and then to include function format percent.;?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 12:44:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558599#M10127</guid>
      <dc:creator>Aleksandar</dc:creator>
      <dc:date>2019-05-14T12:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating percentages from decimals</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558600#M10128</link>
      <description>&lt;P&gt;First of all. It is not a function. It is a format &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondly, you can apply the Percent. Format to all variables starting with IR: like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format IR_: percent.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 May 2019 12:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558600#M10128</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-05-14T12:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Creating percentages from decimals</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558601#M10129</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/271047"&gt;@Aleksandar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for your reply. However, since I have many variables and many observations, it will be hard to compute every number and then to place it in the code. Isn't it possible to just select the variables and then to include function format percent.;?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You don't need to re-compute anything. Just assign the format to the variables in question with the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lestmtsref&amp;amp;docsetTarget=n0d5oq7e0oia0wn13nsins0x8nmh.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;FORMAT Statement&lt;/A&gt;&amp;nbsp;when you create them.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2019 12:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-percentages-from-decimals/m-p/558601#M10129</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-14T12:48:46Z</dc:date>
    </item>
  </channel>
</rss>

