<?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: put dates in titles in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/713041#M27110</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/353472"&gt;@mmea&lt;/a&gt;&amp;nbsp;Did this solve your problem?&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2021 12:20:23 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2021-01-21T12:20:23Z</dc:date>
    <item>
      <title>put dates in titles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/712612#M27069</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to put the current date in one title&amp;nbsp;&lt;/P&gt;
&lt;P&gt;currentdate +1 in the next title&lt;/P&gt;
&lt;P&gt;currentdate+2 in the third title&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried this&lt;/P&gt;
&lt;P&gt;but it do not work;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let day = %sysfunc(putn("&amp;amp;sysdate"d, ddmmyy10.));
%let day = &amp;amp;day;


title height=15pt color=Black  'TEST  &amp;amp;day &amp;amp;sysdate.';

title2 j=l color=gray  'TEST &amp;amp;day &amp;amp;sysdate+1 ';


proc report ..............&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jan 2021 08:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/712612#M27069</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2021-01-20T08:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: put dates in titles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/712613#M27070</link>
      <description>&lt;P&gt;See if you can use this as a template &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let day1 = %sysfunc(putn(%sysfunc(today())    , ddmmyy10.));
%let day2 = %sysfunc(putn(%sysfunc(today()) + 1, ddmmyy10.));
%let day3 = %sysfunc(putn(%sysfunc(today()) + 2, ddmmyy10.));

%put &amp;amp;day1. &amp;amp;day2. &amp;amp;day3.;

title  "&amp;amp;day1.";
title2 "&amp;amp;day2.";
title3 "&amp;amp;day3.";

proc report data=sashelp.class;
run;

title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 08:55:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/712613#M27070</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-01-20T08:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: put dates in titles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/712617#M27071</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

ods pdf notoc file="test_&amp;amp;todaysDate..pdf" ;
ods escapechar="^";


%let day1 = %sysfunc(putn(%sysfunc(today())    , ddmmyy10.));
%let day2 = %sysfunc(putn(%sysfunc(today()) + 1, ddmmyy10.));
%let day3 = %sysfunc(putn(%sysfunc(today()) + 2, ddmmyy10.));

%put &amp;amp;day1. &amp;amp;day2. &amp;amp;day3.;

title height=15pt color=Black  ' &amp;amp;day1.';
title2 j=l color=gray  ' &amp;amp;day1.';
title3 j=l color=gray  ' &amp;amp;day2.';
title4 j=l color=gray  ' &amp;amp;day3.';


options mprint;
title;


proc format;
    value colorf 0=#CBE5A1  1=#FFFF00  1-high = Firebrick;
run;

proc report data=Comp style(header) = {background = lightgray color = black};
	    columns hej nej leg day;
	    define hej /'hej ' group style(column)= [background = lightgray fontsize=2 font_weight = bold] style(header) = {background = lightgray frame=void};
		compute after region / style={bordertopcolor=black borderbottomcolor=black height=1px cellpadding=0};
        line ' '; 
        endcomp;
	    define nej / 'nej ' group style(column)= [background = lightgray fontsize=2] style(header) = {background = lightgray frame=void} ;
		define leg / 'leg ' group style(column)= [background = lightgray fontsize=2] style(header) = {background = lightgray frame=void};
		define day/' dage' group max style(column)= [background = lightgray fontsize=0.5 frame=void] style={background=colorf.} style(header) = {background = lightgray frame=void};
		
	run;


title;
ods pdf close;
ods _all_ close;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jan 2021 09:04:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/712617#M27071</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2021-01-20T09:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: put dates in titles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/712618#M27072</link>
      <description>&lt;P&gt;I'm guessing there is a question here?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remember to put macro variables in double quotation marks. Macro variables do not resolve in single quotation marks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 09:06:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/712618#M27072</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-01-20T09:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: put dates in titles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/712634#M27073</link>
      <description>Use double quotes, not single quotes.  Macro variable references in single quotes will not be resolved.</description>
      <pubDate>Wed, 20 Jan 2021 11:52:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/712634#M27073</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2021-01-20T11:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: put dates in titles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/713041#M27110</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/353472"&gt;@mmea&lt;/a&gt;&amp;nbsp;Did this solve your problem?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 12:20:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/713041#M27110</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-01-21T12:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: put dates in titles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/713042#M27111</link>
      <description>&lt;P&gt;YES - SORRY!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 12:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/put-dates-in-titles/m-p/713042#M27111</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2021-01-21T12:21:44Z</dc:date>
    </item>
  </channel>
</rss>

