<?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 How to add today() date do data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-today-date-do-data/m-p/810538#M319626</link>
    <description>&lt;P&gt;Hi !&lt;/P&gt;
&lt;P&gt;I wanted to add that each item would be assigned date today () in the format date9. run_date name. In SQL, however, it works in 4gl no, how to change it? I get an undeclared array referenced&lt;/P&gt;
&lt;PRE&gt;data WpisyKW;
set tmp_0;
if zab_KW_POZ1='' then zab_KW ='BRAK'; 
if zab_KW_POZ1 ne 'T' then zab_KW ='BRAK'; 
if zab_KW_POZ1 eq 'T' then zab_KW ='AKTYWNY';
today() as Run_Date format date9.;
run;&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 Apr 2022 06:21:34 GMT</pubDate>
    <dc:creator>Gieorgie</dc:creator>
    <dc:date>2022-04-29T06:21:34Z</dc:date>
    <item>
      <title>How to add today() date do data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-today-date-do-data/m-p/810538#M319626</link>
      <description>&lt;P&gt;Hi !&lt;/P&gt;
&lt;P&gt;I wanted to add that each item would be assigned date today () in the format date9. run_date name. In SQL, however, it works in 4gl no, how to change it? I get an undeclared array referenced&lt;/P&gt;
&lt;PRE&gt;data WpisyKW;
set tmp_0;
if zab_KW_POZ1='' then zab_KW ='BRAK'; 
if zab_KW_POZ1 ne 'T' then zab_KW ='BRAK'; 
if zab_KW_POZ1 eq 'T' then zab_KW ='AKTYWNY';
today() as Run_Date format date9.;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Apr 2022 06:21:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-today-date-do-data/m-p/810538#M319626</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2022-04-29T06:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to add today() date do data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-add-today-date-do-data/m-p/810539#M319627</link>
      <description>&lt;P&gt;Have a closer look at &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/basess/titlepage.htm" target="_self"&gt;Step-by-Step Programming with Base SAS&lt;SUP class="xisDoc-superscript"&gt;®&lt;/SUP&gt; 9.4&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need two statements: one assigns the value to the variable run_date, another to attach the format to the variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format run_date date9.;
run_date = today();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: Link inserted&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2022 06:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-add-today-date-do-data/m-p/810539#M319627</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-04-29T06:31:23Z</dc:date>
    </item>
  </channel>
</rss>

