<?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: testing previous table (changeing values) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/testing-previous-table-changeing-values/m-p/573087#M161748</link>
    <description>&lt;P&gt;Thanks, but how can i define a column value to the new dataset b&lt;SPAN&gt;ased on these result? I shows the diff but how can i use it to in a data set to add the flg value to 'Y'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;e.g:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have190430;
input ID	(Startdate Enddate)(:date11.)	Name $ Flg $;
format Startdate Enddate date11.;
datalines;
1	26-Sep-13	26-Sep-13	Erloti    n
2	23-Oct-13	23-Oct-13	AAAAAA    n
3	22-Nov-13	22-Nov-13	Erloti    n
4	16-Dec-13	16-Dec-13	Erloti    n
;
run;

data have190331;
input ID	(Startdate Enddate)(:date11.)	Name $ Flg $;
format Startdate Enddate date11.;
datalines;
1	26-Sep-13	26-Sep-13	Erloti    n
2	23-Oct-13	23-Oct-13	Erloti    y
3	22-Nov-13	22-Nov-13	Erloti    n
4	16-Dec-13	16-Dec-13	Erloti    n
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 12 Jul 2019 13:32:34 GMT</pubDate>
    <dc:creator>ger15xxhcker</dc:creator>
    <dc:date>2019-07-12T13:32:34Z</dc:date>
    <item>
      <title>testing previous table (changeing values)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/testing-previous-table-changeing-values/m-p/573078#M161746</link>
      <description>&lt;P&gt;There is a table with a uniqe ID. This is an &lt;SPAN&gt;external time stamp table (yymmdd).I'd like to check if a fields (in the previous month)&amp;nbsp;A colums, B columns and C columns have changed on the same ID in this table then we will update field&amp;nbsp; in the new table e.g: D:='Y'. If the table does not exist then do not nothing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 13:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/testing-previous-table-changeing-values/m-p/573078#M161746</guid>
      <dc:creator>ger15xxhcker</dc:creator>
      <dc:date>2019-07-12T13:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: testing previous table (changeing values)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/testing-previous-table-changeing-values/m-p/573084#M161747</link>
      <description>&lt;P&gt;Run a proc compare in a&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%if %sysfunc(exist(datasetname)) %then %do;

%end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;block.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 13:27:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/testing-previous-table-changeing-values/m-p/573084#M161747</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-12T13:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: testing previous table (changeing values)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/testing-previous-table-changeing-values/m-p/573087#M161748</link>
      <description>&lt;P&gt;Thanks, but how can i define a column value to the new dataset b&lt;SPAN&gt;ased on these result? I shows the diff but how can i use it to in a data set to add the flg value to 'Y'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;e.g:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have190430;
input ID	(Startdate Enddate)(:date11.)	Name $ Flg $;
format Startdate Enddate date11.;
datalines;
1	26-Sep-13	26-Sep-13	Erloti    n
2	23-Oct-13	23-Oct-13	AAAAAA    n
3	22-Nov-13	22-Nov-13	Erloti    n
4	16-Dec-13	16-Dec-13	Erloti    n
;
run;

data have190331;
input ID	(Startdate Enddate)(:date11.)	Name $ Flg $;
format Startdate Enddate date11.;
datalines;
1	26-Sep-13	26-Sep-13	Erloti    n
2	23-Oct-13	23-Oct-13	Erloti    y
3	22-Nov-13	22-Nov-13	Erloti    n
4	16-Dec-13	16-Dec-13	Erloti    n
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jul 2019 13:32:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/testing-previous-table-changeing-values/m-p/573087#M161748</guid>
      <dc:creator>ger15xxhcker</dc:creator>
      <dc:date>2019-07-12T13:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: testing previous table (changeing values)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/testing-previous-table-changeing-values/m-p/573162#M161772</link>
      <description>&lt;P&gt;You can use a data step update:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data new;
update
&amp;nbsp; have190430
&amp;nbsp; have190331
;
by id startdate enddate;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Jul 2019 16:56:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/testing-previous-table-changeing-values/m-p/573162#M161772</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-12T16:56:27Z</dc:date>
    </item>
  </channel>
</rss>

