<?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: How to derive WOCF? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686194#M208185</link>
    <description>yes</description>
    <pubDate>Wed, 23 Sep 2020 19:44:35 GMT</pubDate>
    <dc:creator>dpa</dc:creator>
    <dc:date>2020-09-23T19:44:35Z</dc:date>
    <item>
      <title>How to derive WOCF?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686182#M208176</link>
      <description>&lt;P&gt;Hi I want to use WOCF for my dataset but How can you do that.&amp;nbsp; so I have two dataset code which one i have and what i want. please help me I tried Lag but didn't succeed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input id $ visitnum aval ;&lt;BR /&gt;datalines;&lt;BR /&gt;1 1 0&lt;BR /&gt;1 2 3&lt;BR /&gt;1 3 3&lt;BR /&gt;1 4 4&lt;BR /&gt;1 5 3&lt;BR /&gt;1 6 3&lt;BR /&gt;1 7 3&lt;BR /&gt;1 8 4&lt;BR /&gt;1 9 4&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data want;&lt;BR /&gt;input id $ visitnum aval dtype ;&lt;BR /&gt;datalines;&lt;BR /&gt;1 1 0&lt;BR /&gt;1 2 3&lt;BR /&gt;1 3 3&lt;BR /&gt;1 4 4&lt;BR /&gt;1 5 4 WOCF&lt;BR /&gt;1 6 4 WOCF&lt;BR /&gt;1 7 4 WOCF&lt;BR /&gt;1 8 4&lt;BR /&gt;1 9 4&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 19:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686182#M208176</guid>
      <dc:creator>dpa</dc:creator>
      <dc:date>2020-09-23T19:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to derive WOCF?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686186#M208179</link>
      <description>What is WOCF?&lt;BR /&gt;Worst observation carried forward?</description>
      <pubDate>Wed, 23 Sep 2020 19:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686186#M208179</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-23T19:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to derive WOCF?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686187#M208180</link>
      <description>Lag or DIF or RETAIN are options. Show the code you tried with Lag please.</description>
      <pubDate>Wed, 23 Sep 2020 19:36:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686187#M208180</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-09-23T19:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to derive WOCF?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686194#M208185</link>
      <description>yes</description>
      <pubDate>Wed, 23 Sep 2020 19:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686194#M208185</guid>
      <dc:creator>dpa</dc:creator>
      <dc:date>2020-09-23T19:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to derive WOCF?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686199#M208186</link>
      <description>&lt;P&gt;with Lag function I only manqged to change next one but i don't know how to do that with other two .&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 20:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686199#M208186</guid>
      <dc:creator>dpa</dc:creator>
      <dc:date>2020-09-23T20:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to derive WOCF?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686201#M208187</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;retain _aval;
if first.id then _aval = aval;
if aval lt _aval
then do;
  aval = _aval;
  dtype = 'WOCF';
end;
else _aval = aval;
drop _aval;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Sep 2020 20:09:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-derive-WOCF/m-p/686201#M208187</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-23T20:09:46Z</dc:date>
    </item>
  </channel>
</rss>

