<?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: Calculating cumulative of missing and from to value in Base SAS coding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculating-cumulative-of-missing-and-from-to-value-in-Base-SAS/m-p/752569#M237088</link>
    <description>&lt;P&gt;Your source example data does not include any A0 B0 C0 or D0 values. So where do they come from in the desired output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to state your rules more explicitly. I cannot determine how A0 to A2 get 0.2 or A3 to A5 gets 0.2 or B3-B6 gets .03 as a "cumulative value".&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jul 2021 13:55:31 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-07-07T13:55:31Z</dc:date>
    <item>
      <title>Calculating cumulative of missing and from to value in Base SAS coding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-cumulative-of-missing-and-from-to-value-in-Base-SAS/m-p/752387#M236996</link>
      <description>If I have data values like&lt;BR /&gt;Data ABC;&lt;BR /&gt;infile Cards;&lt;BR /&gt;Input&lt;BR /&gt;Var1 var2;&lt;BR /&gt;Cards;&lt;BR /&gt;A1 .&lt;BR /&gt;A2 0.1&lt;BR /&gt;A3 0.1&lt;BR /&gt;A4 .&lt;BR /&gt;A5 .&lt;BR /&gt;B1 0.1&lt;BR /&gt;B2 0.1&lt;BR /&gt;B3 0.1&lt;BR /&gt;B4 .&lt;BR /&gt;B5 .&lt;BR /&gt;B6 .&lt;BR /&gt;B7 0.1&lt;BR /&gt;B8 0.1&lt;BR /&gt;C1 0.1&lt;BR /&gt;C2 0.1&lt;BR /&gt;C3 0.1&lt;BR /&gt;C4 0.1&lt;BR /&gt;C5 .&lt;BR /&gt;C6 0.1&lt;BR /&gt;D1 .&lt;BR /&gt;D2 .&lt;BR /&gt;D3 0.1&lt;BR /&gt;D4 .&lt;BR /&gt;Then need cumulative answer like&lt;BR /&gt;&lt;BR /&gt;Range variable define a range cumulative start from - to end&lt;BR /&gt;Cmvt variable for numeric cumulative&lt;BR /&gt;mis_cum variable for missing cumulative&lt;BR /&gt;&lt;BR /&gt;range cumtv mis_cum&lt;BR /&gt;A0 to A2 . 0.2&lt;BR /&gt;A2 to A3 0.2&lt;BR /&gt;A3 to A5 . 0.2&lt;BR /&gt;B0 to B3 0.5&lt;BR /&gt;B3 to B6 . 0.3&lt;BR /&gt;B7 to B8 0.2&lt;BR /&gt;C0 to C4 0.5&lt;BR /&gt;C4 to C5 . 0.1&lt;BR /&gt;C5 to C6 0.1&lt;BR /&gt;D0 to D2 . 0.2&lt;BR /&gt;D2 to D3 0.1 .&lt;BR /&gt;D3 to D4 . 0.1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;We where adding observation A0,B0&lt;BR /&gt;It mean if A1=0.1 it mean A1 is completed&lt;BR /&gt;Means A0-A1=0.1</description>
      <pubDate>Tue, 06 Jul 2021 19:11:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-cumulative-of-missing-and-from-to-value-in-Base-SAS/m-p/752387#M236996</guid>
      <dc:creator>Akash_Nupeak</dc:creator>
      <dc:date>2021-07-06T19:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating cumulative of missing and from to value in Base SAS coding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-cumulative-of-missing-and-from-to-value-in-Base-SAS/m-p/752569#M237088</link>
      <description>&lt;P&gt;Your source example data does not include any A0 B0 C0 or D0 values. So where do they come from in the desired output?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to state your rules more explicitly. I cannot determine how A0 to A2 get 0.2 or A3 to A5 gets 0.2 or B3-B6 gets .03 as a "cumulative value".&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 13:55:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-cumulative-of-missing-and-from-to-value-in-Base-SAS/m-p/752569#M237088</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-07T13:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating cumulative of missing and from to value in Base SAS coding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-cumulative-of-missing-and-from-to-value-in-Base-SAS/m-p/761161#M240803</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We were adding observation A0, B0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It means if A1=0.1 it means A1 is completed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Means&amp;nbsp; In range A0 to A1=0.1 is completed&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;we have to first define the A0 or&amp;nbsp; B0 as an initial start range within the A1 to A4 or B1 to B5&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 14:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-cumulative-of-missing-and-from-to-value-in-Base-SAS/m-p/761161#M240803</guid>
      <dc:creator>Akash_Nupeak</dc:creator>
      <dc:date>2021-08-12T14:43:20Z</dc:date>
    </item>
  </channel>
</rss>

