<?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: COnverting the numeric part of a numeric variable into its corresponding fraction. in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265889#M7345</link>
    <description>&lt;P&gt;Now I see you do mention numeric variable in the title of you question. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that case you simply need to change or remove the associated format which must now be PERCENT. or PERCENTN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how to change a format?&lt;/P&gt;</description>
    <pubDate>Sun, 24 Apr 2016 11:56:45 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2016-04-24T11:56:45Z</dc:date>
    <item>
      <title>Converting the numeric part of a numeric variable into its fraction</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265882#M7337</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset of 14 columns.&lt;/P&gt;&lt;P&gt;One of those variables show the percentage of students. e.g 25%&lt;/P&gt;&lt;P&gt;I need to remove the % and replace it with it's corresponding fraction. e.g 25/100 = .25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if I can do this together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, what I have doen is just stripped the % from the column. How to go about the next part in the same column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2016 10:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265882#M7337</guid>
      <dc:creator>Antaralib</dc:creator>
      <dc:date>2016-04-24T10:17:45Z</dc:date>
    </item>
    <item>
      <title>COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265883#M7341</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset of 14 columns.&lt;/P&gt;&lt;P&gt;One of those variables show the percentage of students. e.g 25%&lt;/P&gt;&lt;P&gt;I need to remove the % and replace it with it's corresponding fraction. e.g 25/100 = .25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if I can do this together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, what I have doen is just stripped the % from the column. How to go about the next part in the same column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2016 10:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265883#M7341</guid>
      <dc:creator>Antaralib</dc:creator>
      <dc:date>2016-04-24T10:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265885#M7342</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/82575"&gt;@Antaralib&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a dataset of 14 columns.&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;One of those variables show the percentage of students. e.g 25%&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;I need to remove the % and replace it with it's corresponding fraction. e.g 25/100 = .25&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if I can do this together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, what I have doen is just stripped the % from the column. How to go about the next part in the same column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If we assume the variable is character and not numeric being displayed with PERCENT format you can read it using the INPUT function into a numeric variable&amp;nbsp;with value .25.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;40         data _null_;
41            pct = '25%';
42            pct2 = input(pct,percent.);
43            put _all_;
44            run;

pct=25% pct2=0.25 _ERROR_=0 _N_=1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2016 11:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265885#M7342</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-04-24T11:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265886#M7343</link>
      <description>&lt;P&gt;Thanks for the prompt response. However the variable is in best32. format.&lt;/P&gt;&lt;P&gt;I tried :&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; _null_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token number"&gt;41&lt;/SPAN&gt;            pct &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'25%'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token number"&gt;42&lt;/SPAN&gt;            pct2 &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;input&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;pct&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;percent&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token number"&gt;43&lt;/SPAN&gt;            &lt;SPAN class="token keyword"&gt;put&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;_all_&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token number"&gt;44&lt;/SPAN&gt;            &lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;with the parameters actually in question. Although the log shows&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;pct&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;25&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;%&lt;/SPAN&gt; pct2&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0.25&lt;/SPAN&gt; _ERROR_&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;0&lt;/SPAN&gt; _N_&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I don't see the column with the value 0.25. It still shows 25. I need it to reflect that fraction.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2016 11:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265886#M7343</guid>
      <dc:creator>Antaralib</dc:creator>
      <dc:date>2016-04-24T11:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265888#M7344</link>
      <description>&lt;P&gt;If the variable you have is numeric and has format best32 then it will not display with a percent sign. &amp;nbsp;Please show output&amp;nbsp;from PROC CONTENTS for the variable in question and show it looks with PROC PRINT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also my program was and example not the exact code you need to execute. Especially&amp;nbsp;with new information the variable is numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2016 11:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265888#M7344</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-04-24T11:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265889#M7345</link>
      <description>&lt;P&gt;Now I see you do mention numeric variable in the title of you question. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that case you simply need to change or remove the associated format which must now be PERCENT. or PERCENTN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how to change a format?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2016 11:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265889#M7345</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-04-24T11:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Converting the numeric part of a numeric variable into its fraction</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265890#M7338</link>
      <description>&lt;P&gt;First, a question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your variable a numeric variable with the % sign applied using a format? Or is it a character variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2016 13:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265890#M7338</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2016-04-24T13:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Converting the numeric part of a numeric variable into its fraction</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265891#M7339</link>
      <description>THanks Tom.&lt;BR /&gt;&lt;BR /&gt;My variable looks like :&lt;BR /&gt;international_students&lt;BR /&gt;25%&lt;BR /&gt;27%&lt;BR /&gt;33%&lt;BR /&gt;22%&lt;BR /&gt;And the informat for it is best32.&lt;BR /&gt;&lt;BR /&gt;Now I want to have column that would look like its corresponding fractions:&lt;BR /&gt;&lt;BR /&gt;.25&lt;BR /&gt;.27&lt;BR /&gt;.33&lt;BR /&gt;.22&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Sun, 24 Apr 2016 13:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265891#M7339</guid>
      <dc:creator>Antaralib</dc:creator>
      <dc:date>2016-04-24T13:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265892#M7346</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you mean changing the format in the infile statement?&lt;/P&gt;&lt;P&gt;Or,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Storing the percent in the numeric value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although, I need a separate/same column variable that would show the fractions of the percentages.&lt;/P&gt;&lt;P&gt;e.g instead of 25%&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33%,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it should show&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;.25&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;.33&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antara&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2016 13:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265892#M7346</guid>
      <dc:creator>Antaralib</dc:creator>
      <dc:date>2016-04-24T13:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Converting the numeric part of a numeric variable into its fraction</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265893#M7340</link>
      <description>&lt;P&gt;If you have a best32. informat, that means that your variable is numeric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that case, you should be able to get your desired appearance by changing the format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work nicely:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;datasets&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;lib&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=work &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nolist&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;modify&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; have;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; TestVar &lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;5.2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2016 14:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265893#M7340</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2016-04-24T14:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265911#M7347</link>
      <description>&lt;P&gt;Although both&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15142"&gt;@TomKari﻿&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__﻿&lt;/a&gt;&amp;nbsp;have posted correct solutions, you can also fix this in your import process, if you're using an infile statement to read the code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Leave the informat as is, and add a format statement in the data step to format the data as it's read in.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can't figure it out, or it doesn't work post your full code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something like the following would work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format variable best8.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 24 Apr 2016 16:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265911#M7347</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-24T16:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265946#M7348</link>
      <description>&lt;P&gt;Thanks. APpreciate the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc datasets lib=dm nolist;&lt;BR /&gt;modify timeseries_1;&lt;BR /&gt;format international_Students 5.2;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc datasets lib=dm nolist; (dm is my lib name and timeseries_1 is my file name)&lt;BR /&gt;modify timeseries_1;&lt;BR /&gt;format international_Students best8.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;gives me upto 2 decimal places. &amp;nbsp;eg. 25.00, 33.00.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want the fraction .25, .33 etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 03:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265946#M7348</guid>
      <dc:creator>Antaralib</dc:creator>
      <dc:date>2016-04-25T03:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265947#M7349</link>
      <description>&lt;P&gt;Even,&lt;/P&gt;&lt;P&gt;format international_Students FRACT2.;&lt;/P&gt;&lt;P&gt;did not work.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 04:00:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265947#M7349</guid>
      <dc:creator>Antaralib</dc:creator>
      <dc:date>2016-04-25T04:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265948#M7350</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to crrect one error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the variable data value is 25%, I need it to display 1/4 and not .25.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 04:03:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265948#M7350</guid>
      <dc:creator>Antaralib</dc:creator>
      <dc:date>2016-04-25T04:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265949#M7351</link>
      <description>&lt;P&gt;Use the FRACTw. format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format variable fract8.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 04:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265949#M7351</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-25T04:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265950#M7352</link>
      <description>&lt;P&gt;If your number is 25 you'll have to divide it by 100 first, either in your import or a separate data step.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data sample;
Input value;
Value_fract=value/100;
Format value_fract fract8.;

Cards;
25
33
45
67
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Apr 2016 04:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265950#M7352</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-25T04:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265952#M7353</link>
      <description>&lt;P&gt;Thanks Reeza.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data dm.timeseries_1;&lt;BR /&gt;input international_students;&lt;BR /&gt;international_students_fract = international_students/100;&lt;BR /&gt;format international_students_fract fract8.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I simply tried this and it did work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;data dm.timeseries_1;&lt;BR /&gt;set dm.timeseries;&lt;BR /&gt;international_students_fract = international_students/100;&lt;BR /&gt;format international_students_fract fract8.;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the still my issue remains, converting a number into it's fraction in the same column itself.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 05:32:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265952#M7353</guid>
      <dc:creator>Antaralib</dc:creator>
      <dc:date>2016-04-25T05:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265969#M7354</link>
      <description>&lt;P&gt;Does my sample code work?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 09:00:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/265969#M7354</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-25T09:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/266122#M7355</link>
      <description>&lt;P&gt;Show the actual input values, the actual output values, the desired output and describe exactly how it&amp;nbsp;"doesn't work": no output, incorrect output, close but not quite what is wanted.&lt;/P&gt;
&lt;P&gt;And run PROC contents on your data set and show the results.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 17:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/266122#M7355</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-25T17:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: COnverting the numeric part of a numeric variable into its corresponding fraction.</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/266132#M7356</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/82575"&gt;@Antaralib&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the still my issue remains, converting a number into it's fraction in the same column itself.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know what doesn't work means.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want it in the same column then divide the value by 100 and apply the format to the variable - using the same name. Or write a custom format, but I wouldn't recommend that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; data dm.timeseries_1;
set dm.timeseries;
international_students = international_students/100;
format international_students fract8.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 25 Apr 2016 17:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Converting-the-numeric-part-of-a-numeric-variable-into-its/m-p/266132#M7356</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-25T17:33:13Z</dc:date>
    </item>
  </channel>
</rss>

