<?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 Numeric value split in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56663#M6845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a to include below validations for one of my requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;If the current quantity value is less 0,083 the new quantity value should be 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;If the current quantity value is greater then or equal to 0,083 the new quantity value should be 1 (rules applies till quantity 10)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;If the current quantity value is greater then or equal to 10 the new quantity vaults should be normal rounding.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;ex: if quantity value is 2.056 then quantity value should be 2. if &lt;SPAN style="font-family: Tahoma; background-color: #ffffff;"&gt;if quantity value is 11.056 then quantity value should be 11.1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need to include below validations from 0 to 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: if nums lt &amp;lt; 0.083 then nums=0;&lt;/P&gt;&lt;P&gt;else if nums ge 0.083 and nums le 1 then nums =1;&lt;/P&gt;&lt;P&gt;else if nums ge 1 and nums lt &amp;lt; 1.083 and&amp;nbsp; then nums=1;&lt;/P&gt;&lt;P&gt;else if nums ge 1.083 and nums le 2 then nums =2;&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;else if nums nums ge 9 and nums lt &amp;lt; 9.083 then nums=9;&lt;/P&gt;&lt;P&gt;else if nums ge 9.083 and nums le 10 then nums =10;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; nums=round(nums,&lt;/SPAN&gt;&lt;STRONG style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt;0.1);&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;instead of using repeted validations from 0 to 10, any way to use single validation for all above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;Could you please let me know the best way to do it for all my all numeric variables to fulfil my requirement&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2012 20:26:31 GMT</pubDate>
    <dc:creator>sunilreddy</dc:creator>
    <dc:date>2012-02-16T20:26:31Z</dc:date>
    <item>
      <title>Numeric value split</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56663#M6845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a to include below validations for one of my requirement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;If the current quantity value is less 0,083 the new quantity value should be 0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;If the current quantity value is greater then or equal to 0,083 the new quantity value should be 1 (rules applies till quantity 10)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;If the current quantity value is greater then or equal to 10 the new quantity vaults should be normal rounding.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;ex: if quantity value is 2.056 then quantity value should be 2. if &lt;SPAN style="font-family: Tahoma; background-color: #ffffff;"&gt;if quantity value is 11.056 then quantity value should be 11.1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I need to include below validations from 0 to 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: if nums lt &amp;lt; 0.083 then nums=0;&lt;/P&gt;&lt;P&gt;else if nums ge 0.083 and nums le 1 then nums =1;&lt;/P&gt;&lt;P&gt;else if nums ge 1 and nums lt &amp;lt; 1.083 and&amp;nbsp; then nums=1;&lt;/P&gt;&lt;P&gt;else if nums ge 1.083 and nums le 2 then nums =2;&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;else if nums nums ge 9 and nums lt &amp;lt; 9.083 then nums=9;&lt;/P&gt;&lt;P&gt;else if nums ge 9.083 and nums le 10 then nums =10;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt; font-family: Courier New;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt; nums=round(nums,&lt;/SPAN&gt;&lt;STRONG style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt;0.1);&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;instead of using repeted validations from 0 to 10, any way to use single validation for all above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;Could you please let me know the best way to do it for all my all numeric variables to fulfil my requirement&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 20:26:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56663#M6845</guid>
      <dc:creator>sunilreddy</dc:creator>
      <dc:date>2012-02-16T20:26:31Z</dc:date>
    </item>
    <item>
      <title>Numeric value split</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56664#M6846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure exactly what you're asking for, I read it as a combination of rounding requirements and recoding, but not sure which goes where. Some more sample data might help.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming rounding, 3 if statements with the round function will give you what you want but I don't think the rules are very clear. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input num;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;0.05&lt;/P&gt;&lt;P&gt;0.0830&lt;/P&gt;&lt;P&gt;0.9&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;5.4556&lt;/P&gt;&lt;P&gt;2.456&lt;/P&gt;&lt;P&gt;9.3&lt;/P&gt;&lt;P&gt;9.9&lt;/P&gt;&lt;P&gt;10.0343&lt;/P&gt;&lt;P&gt;11.34343&lt;/P&gt;&lt;P&gt;23.343&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;if num&amp;lt;0.083 then new_number=0;&lt;/P&gt;&lt;P&gt;else if num&amp;lt;10 then new_number=round(num, 1);&lt;/P&gt;&lt;P&gt;else new_number=round(num, 0.1);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 20:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56664#M6846</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-02-16T20:54:40Z</dc:date>
    </item>
    <item>
      <title>Numeric value split</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56665#M6847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Presuming the 10 in your requirements was supposed to be a 1, I think the following does what you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input num1-num3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;0.05 1.3 2.6&lt;/P&gt;&lt;P&gt;0.0830 4 5.2&lt;/P&gt;&lt;P&gt;0.9 5.6&amp;nbsp; 7.1&lt;/P&gt;&lt;P&gt;1 2 3&lt;/P&gt;&lt;P&gt;5.4556 5.1 5.6&lt;/P&gt;&lt;P&gt;2.456 6 7&lt;/P&gt;&lt;P&gt;9.3 3 .2&lt;/P&gt;&lt;P&gt;9.9 4 .4&lt;/P&gt;&lt;P&gt;10.0343 .6 .7&lt;/P&gt;&lt;P&gt;11.34343 3 8&lt;/P&gt;&lt;P&gt;23.343 12.2 12.5&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array nums _numeric_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do over nums;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if nums lt 0.083 then nums=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if nums le 1.0 then nums=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else nums=round(nums, 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 21:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56665#M6847</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-16T21:08:10Z</dc:date>
    </item>
    <item>
      <title>Numeric value split</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56666#M6848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Thanks a lot for your help.&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to include below validations from 0 to 10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: if nums lt &amp;lt; 0.083 then nums=0;&lt;/P&gt;&lt;P&gt;else if nums ge 0.083 and nums le 1 then nums =1;&lt;/P&gt;&lt;P&gt;else if nums ge 1 and nums lt &amp;lt; 1.083 and&amp;nbsp; then nums=1;&lt;/P&gt;&lt;P&gt;else if nums ge 1.083 and nums le 2 then nums =2;&lt;/P&gt;&lt;P&gt;-------&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;else if nums nums ge 9 and nums lt &amp;lt; 9.083 then nums=9;&lt;/P&gt;&lt;P&gt;else if nums ge 9.083 and nums le 10 then nums =10;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #0000ff; font-size: 12pt;"&gt;else&lt;/SPAN&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; nums=round(nums,&lt;/SPAN&gt;&lt;STRONG style="font-family: Courier New; color: #008080; font-size: 12pt;"&gt;&lt;STRONG style="font-family: Courier New; color: #008080; font-size: 12pt;"&gt;&lt;STRONG style="font-family: Courier New; color: #008080; font-size: 12pt;"&gt;0.1);&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;&lt;SPAN style="background-color: #ffffff; font-family: Tahoma;"&gt;instead of using repeted validations from 0 to 10, any way to use single validation for all above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: Courier New; color: #008080; font-size: 12pt;"&gt;&lt;STRONG style="font-family: Courier New; color: #008080; font-size: 12pt;"&gt;&lt;STRONG style="font-family: Courier New; color: #008080; font-size: 12pt;"&gt; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 07:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56666#M6848</guid>
      <dc:creator>sunilreddy</dc:creator>
      <dc:date>2012-02-17T07:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric value split</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56667#M6849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A Suggestion with proc report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;&amp;nbsp; input number expectednumber;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; cards;&lt;BR /&gt;0.071 0&lt;BR /&gt;0.71 1&lt;BR /&gt;0.91 1&lt;BR /&gt;1.51 2&lt;BR /&gt;1.91 2&lt;BR /&gt;2.41 2.4&lt;BR /&gt;2.81 2.8 &lt;BR /&gt;9.05 9&lt;BR /&gt;9.41 10&lt;BR /&gt;11.81 11.8&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format; value number &lt;BR /&gt;low - &amp;lt; 0.083&amp;nbsp; = 0.0&lt;BR /&gt;0.083 - 1.083&amp;nbsp; = 1.0&lt;BR /&gt;1.083 -&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2.0&lt;BR /&gt;9 -&amp;nbsp; &amp;lt; 9.083&amp;nbsp;&amp;nbsp; = 9.0&lt;BR /&gt;9.083 - 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 10.0&lt;BR /&gt;;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new; set test;&lt;BR /&gt;numbernew = round(put(number,number.),0.1);&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 09:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56667#M6849</guid>
      <dc:creator>christa</dc:creator>
      <dc:date>2012-02-17T09:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric value split</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56668#M6850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Getting below error if am using format for nums = round(put(nums,number.),0.1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Array subscript out of range at line 43 column 5.&lt;/P&gt;&lt;P&gt;number=0.071 expectednumber=0 _I_=. _ERROR_=1 _N_=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;BR /&gt;&amp;nbsp; input number expectednumber;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; cards;&lt;BR /&gt;0.071 0&lt;BR /&gt;0.71 1&lt;BR /&gt;0.91 1&lt;BR /&gt;1.51 2&lt;BR /&gt;1.91 2&lt;BR /&gt;2.41 2.4&lt;BR /&gt;2.81 2.8 &lt;BR /&gt;9.05 9&lt;BR /&gt;9.41 10&lt;BR /&gt;11.81 11.8&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc format; value number &lt;BR /&gt;low - &amp;lt; 0.083&amp;nbsp; = 0.0&lt;BR /&gt;0.083 - 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1.0&lt;BR /&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; - &amp;lt; 1.083&amp;nbsp;&amp;nbsp;&amp;nbsp; = 1.0&lt;BR /&gt;1.083 - 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 2.0&lt;BR /&gt;9 -&amp;nbsp; &amp;lt; 9.083&amp;nbsp;&amp;nbsp; = 9.0&lt;BR /&gt;9.083 - 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 10.0&lt;BR /&gt;;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data new1; set test;&lt;BR /&gt;array nums _numeric_;&lt;BR /&gt;if nums &amp;lt;= 10.0 then &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nums = round(put(nums,number.),0.1);&lt;BR /&gt;else nums=round(nums,0.1);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to use array construct for all numeric variables in dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56668#M6850</guid>
      <dc:creator>sunilreddy</dc:creator>
      <dc:date>2012-02-17T12:39:08Z</dc:date>
    </item>
    <item>
      <title>Numeric value split</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56669#M6851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;If you insist on the &amp;lt;=10 condition, you could do it as follows:&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data new1; set test;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if number &amp;lt;= 10.0 then nums = round(put(number,number.),0.1);&lt;/P&gt;&lt;P&gt;else nums=round(number,0.1);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is not neccesary. Why do you use this array-construct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;STRONG style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;STRONG style=": ; color: #000080; font-size: 3; font-family: 'Courier New';"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008080; font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080; font-size: 12pt; font-family: Courier New;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="font-family: Courier New; color: #000080; font-size: 12pt;"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:51:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56669#M6851</guid>
      <dc:creator>christa</dc:creator>
      <dc:date>2012-02-17T12:51:32Z</dc:date>
    </item>
    <item>
      <title>Numeric value split</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56670#M6852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you reasponse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I want to use this validation for all numeric variables in dataset for my requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:57:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56670#M6852</guid>
      <dc:creator>sunilreddy</dc:creator>
      <dc:date>2012-02-17T12:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric value split</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56671#M6853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a chance you made a mistake in your third requirement.&amp;nbsp; Both the 2nd and 3rd are shown to result in 1.&amp;nbsp; Should they be 1 and 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, you might be able to use something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; input num1-num3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;0.083 1.082 2.083&lt;/P&gt;&lt;P&gt;0.083 4 5.2&lt;/P&gt;&lt;P&gt;0.9 5.6&amp;nbsp; 7.1&lt;/P&gt;&lt;P&gt;1 2 3&lt;/P&gt;&lt;P&gt;5.4556 5.1 5.6&lt;/P&gt;&lt;P&gt;2.456 6 7&lt;/P&gt;&lt;P&gt;9.082 9.083 9.084&lt;/P&gt;&lt;P&gt;9.9 4 .4&lt;/P&gt;&lt;P&gt;10.0343 .6 .7&lt;/P&gt;&lt;P&gt;11.34343 3 8&lt;/P&gt;&lt;P&gt;23.343 12.2 12.5&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array nums _numeric_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do over nums;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if nums ge 10 then nums=round(nums, 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nums=nums-.083;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nums=ceil(nums);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 13:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56671#M6853</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-17T13:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric value split</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56672#M6854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I think you want an INVALUE informat not a VALUE format and use INPUTN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 15:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56672#M6854</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-02-17T15:17:00Z</dc:date>
    </item>
    <item>
      <title>Numeric value split</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56673#M6855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; How about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data data_out;&lt;/P&gt;&lt;P&gt;set data_in;&lt;/P&gt;&lt;P&gt;integer_part=int(nums);&lt;/P&gt;&lt;P&gt;U_limit=﻿﻿﻿integer_part+0.083;&lt;/P&gt;&lt;P&gt;if nums le 10 then do;&lt;/P&gt;&lt;P&gt;if nums lt ﻿U_limit then nums=inger_part;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;else if nums gt 10 then do;&lt;/P&gt;&lt;P&gt;nums=round(nums.0.1);&lt;/P&gt;&lt;P&gt;drop integer_part U_limit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 04:04:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56673#M6855</guid>
      <dc:creator>Mit</dc:creator>
      <dc:date>2012-02-22T04:04:16Z</dc:date>
    </item>
    <item>
      <title>Numeric value split</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56674#M6856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; sorry Sunil . I missed one line while typing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code should be;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data data_out;&lt;/P&gt;&lt;P&gt;set data_in;&lt;/P&gt;&lt;P&gt;integer_part=int(nums);&lt;/P&gt;&lt;P&gt;U_limit=intger_part+1;&lt;/P&gt;&lt;P&gt;if nums le 10 then do;&lt;/P&gt;&lt;P&gt;if nums lt U_limit then nums=integer_part;&lt;/P&gt;&lt;P&gt;else if nums ge U_limit then nums=integer_part+1;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;P&gt;else if nums gt 10 then do;&lt;/P&gt;&lt;P&gt;nums=round(nums,0.1);&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;P&gt;drop integer_part U_limit;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;P&gt;﻿﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 04:22:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Numeric-value-split/m-p/56674#M6856</guid>
      <dc:creator>Mit</dc:creator>
      <dc:date>2012-02-22T04:22:20Z</dc:date>
    </item>
  </channel>
</rss>

