<?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: Difference between day program runs and variable date in dataset. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262782#M51369</link>
    <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fraud_ovrvw4;
  set fraud_ovrvw3;
  if frd_status = 'Support Requested' then updt_tm = (lwsi_dt - today() );
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Apr 2016 02:59:34 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2016-04-11T02:59:34Z</dc:date>
    <item>
      <title>Difference between day program runs and variable date in dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262771#M51363</link>
      <description>&lt;P&gt;I currently have a data set that shows dates different actions have happened. &amp;nbsp;I am trying to figure out the number of days since that date based on the day the program is ran.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;open_dt, ocfr_dt, lwsi_dt, pcse_dt, pcna_dt, close_dt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a column that has the status based on which date is filled in. &amp;nbsp;Based on the status I need it to subtract that subsequent column from the date the pgroam is run.&lt;/P&gt;
&lt;P&gt;I delcare the variable today at the top.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
today=today();
call symput('today', put(today,date9.));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and I wrote it like this but get a syntax error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fraud_ovrvw4;
set fraud_ovrvw3;
if frd_status = 'Support Requested' then updt_tm = (lwsi_dt - &amp;amp;today.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I am not sure the syntax to get updt_tm to tell me how many days between the column_name I want it to look and the day its ran.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 02:24:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262771#M51363</guid>
      <dc:creator>Sotarkadin</dc:creator>
      <dc:date>2016-04-11T02:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between day program runs and variable date in dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262782#M51369</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data fraud_ovrvw4;
  set fraud_ovrvw3;
  if frd_status = 'Support Requested' then updt_tm = (lwsi_dt - today() );
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Apr 2016 02:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262782#M51369</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-04-11T02:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between day program runs and variable date in dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262785#M51371</link>
      <description>&lt;P&gt;That is what I tried the first time and the column updt_tm comes back blank. &amp;nbsp;Does it matter the format, as the date in the data set is ddmmmyyyy&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 03:02:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262785#M51371</guid>
      <dc:creator>Sotarkadin</dc:creator>
      <dc:date>2016-04-11T03:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between day program runs and variable date in dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262790#M51376</link>
      <description>&lt;P&gt;Did you get an error?&lt;/P&gt;
&lt;P&gt;Format shouldn't matter, but the type does, is it a character or numeric variable?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 03:39:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262790#M51376</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-04-11T03:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between day program runs and variable date in dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262794#M51380</link>
      <description>&lt;P&gt;The format doesn't matter. If it comes back&amp;nbsp;missing&amp;nbsp;then the input value is missing&amp;nbsp;too.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 03:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262794#M51380</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-04-11T03:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between day program runs and variable date in dataset.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262807#M51388</link>
      <description>&lt;P&gt;Which type (numeric, character) is&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;lwsi_dt&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and what values do you find when you inspect your input dataset? &lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 06:08:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Difference-between-day-program-runs-and-variable-date-in-dataset/m-p/262807#M51388</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-11T06:08:39Z</dc:date>
    </item>
  </channel>
</rss>

