<?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: Automatic insertion of a date seven days prior to system date. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Automatic-insertion-of-a-date-seven-days-prior-to-system-date/m-p/857224#M37819</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
call symputx('last_week',put(today()-7,yymmdd10.));
run;

title "Data from: &amp;amp;last_week.";&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 05 Feb 2023 08:06:20 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-02-05T08:06:20Z</dc:date>
    <item>
      <title>Automatic insertion of a date seven days prior to system date.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Automatic-insertion-of-a-date-seven-days-prior-to-system-date/m-p/857221#M37818</link>
      <description>&lt;P&gt;I have created a SAS code to generate automatic weekly report in an ODS Excel file. The file will contain some tables. The titles of those tables are like,&lt;/P&gt;
&lt;P&gt;"Table 1. Number of items sold in the most recent week (start date of the recent week to end date of the recent week)"&lt;/P&gt;
&lt;P&gt;"Table 2. Number of items sold in the previous week (start date of the previous week to end date of the previous week)"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;End date of the recent week will be the system date (the date when the SAS code will be run to generate the report).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to use some way so, I do not need to change the dates in the titles every week. For example "&amp;amp;SYSDATE"&amp;nbsp; print the date of running the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Feb 2023 07:13:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Automatic-insertion-of-a-date-seven-days-prior-to-system-date/m-p/857221#M37818</guid>
      <dc:creator>Barkat</dc:creator>
      <dc:date>2023-02-05T07:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic insertion of a date seven days prior to system date.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Automatic-insertion-of-a-date-seven-days-prior-to-system-date/m-p/857224#M37819</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
call symputx('last_week',put(today()-7,yymmdd10.));
run;

title "Data from: &amp;amp;last_week.";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 05 Feb 2023 08:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Automatic-insertion-of-a-date-seven-days-prior-to-system-date/m-p/857224#M37819</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-05T08:06:20Z</dc:date>
    </item>
  </channel>
</rss>

