<?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: Sas in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sas/m-p/733635#M228579</link>
    <description>&lt;P&gt;Do you mean you want to get col2 from col1?&lt;BR /&gt;It looks like 2019-01-03 is missing and 2014-02-03 is duplicated, please provide the conditions.&lt;/P&gt;</description>
    <pubDate>Wed, 14 Apr 2021 07:12:04 GMT</pubDate>
    <dc:creator>japelin</dc:creator>
    <dc:date>2021-04-14T07:12:04Z</dc:date>
    <item>
      <title>Sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas/m-p/733626#M228574</link>
      <description>&lt;BR /&gt;Col1&lt;BR /&gt;&amp;nbsp; 2019-01-03&lt;BR /&gt;2019-03-01t11.30&lt;BR /&gt;2019-04-09&lt;BR /&gt;2014-02-03&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I need to get the other column as&lt;BR /&gt;Col2&lt;BR /&gt;2019-03-01t11.30&lt;BR /&gt;2019-04-09&lt;BR /&gt;2014-02-03&lt;BR /&gt;2014-02-03&lt;BR /&gt;&lt;BR /&gt;I have the cold and I need to get the col2</description>
      <pubDate>Wed, 14 Apr 2021 06:21:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas/m-p/733626#M228574</guid>
      <dc:creator>Sowmya12</dc:creator>
      <dc:date>2021-04-14T06:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas/m-p/733635#M228579</link>
      <description>&lt;P&gt;Do you mean you want to get col2 from col1?&lt;BR /&gt;It looks like 2019-01-03 is missing and 2014-02-03 is duplicated, please provide the conditions.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 07:12:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas/m-p/733635#M228579</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-04-14T07:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas/m-p/733636#M228580</link>
      <description>&lt;P&gt;What is the logic here?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 07:17:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas/m-p/733636#M228580</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-04-14T07:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas/m-p/733638#M228582</link>
      <description>I need the dates from first column by leaving the first date from first&lt;BR /&gt;column.&lt;BR /&gt;Second date from first column should be the first date for new column. In&lt;BR /&gt;that way sequence should generate&lt;BR /&gt;Example:&lt;BR /&gt;Col1&lt;BR /&gt;2019-04-09&lt;BR /&gt;2019-07-08&lt;BR /&gt;2014-02-03&lt;BR /&gt;The output new column should be&lt;BR /&gt;Col2&lt;BR /&gt;2019-07-08&lt;BR /&gt;2014-02-03&lt;BR /&gt;2014-02-03</description>
      <pubDate>Wed, 14 Apr 2021 07:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas/m-p/733638#M228582</guid>
      <dc:creator>Sowmya12</dc:creator>
      <dc:date>2021-04-14T07:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sas</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas/m-p/733640#M228584</link>
      <description>&lt;P&gt;how about this code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input dt1:yymmdd10.;
  format dt1 yymmdd10.;
datalines;
2019-04-09
2019-07-08
2014-02-03
;
run;

data temp;
  set have;
  key=_n_;
run;
proc sort data=temp;
  by descending key;
run;
data next;
  set temp;
  retain dt2;
  format dt2 yymmdd10.;
  by descending key;
  if _n_=1 then dt2=dt1;
  output;
  dt2=dt1;
run;
proc sort data=next out=want(drop=key);
  by key;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Apr 2021 07:45:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas/m-p/733640#M228584</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-04-14T07:45:25Z</dc:date>
    </item>
  </channel>
</rss>

