<?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: Variable value does not appear in Email in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Variable-value-does-not-appear-in-Email/m-p/802610#M315977</link>
    <description>&lt;P&gt;The solution has already been given, but do you really store your dates like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE workday &amp;gt;= 20220201;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;If yes, it's a VERY BAD IDEA, as it deprives you of the use of all the nice tools SAS provides for dealing with dates, makes date calculations &lt;U&gt;very&lt;/U&gt; hard, and on top you have to use at least 5 numeric bytes to store them. SAS date values need only 4.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 10:57:20 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-03-17T10:57:20Z</dc:date>
    <item>
      <title>Variable value does not appear in Email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-value-does-not-appear-in-Email/m-p/802595#M315968</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My code below runs successfully, but only shows the text of the two variables &lt;STRONG&gt;count_NO_contract&lt;/STRONG&gt; and &lt;STRONG&gt;count_NO_sales&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;How do I have to change the code?&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename REPORT "%sysfunc(pathname(work))\output.html"; 
filename SEND 
	email to		= "XXX@XXX.com"
	SUBJECT 		= "Test Subject"
        content_type 	        = "text/html"
	ATTACH 			= "&amp;amp;PATHNAME";

ods html file	= REPORT
         style	= HTMLBlue;

PROC REPORT DATA=APPG.AZL_NG_BESTAND;
	COLUMN workday workvalue;
	DEFINE workday / GROUP;
	DEFINE workvalue / F = COMMAX10.;
	RBREAK AFTER / SUMMARIZE;
	WHERE workday &amp;gt;= 20220201;
RUN;

ods html close;

data _null_;
  infile REPORT;
  file SEND;
  input;
  if _infile_ ne '&amp;lt;/html&amp;gt;' then put _infile_;
  else do;
	PUT 'Process finished';
	PUT 'unknown contracts: &amp;amp;count_NO_contract';
	PUT 'unknown sales: &amp;amp;count_NO_sales';
  end;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Sascha&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 09:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-value-does-not-appear-in-Email/m-p/802595#M315968</guid>
      <dc:creator>SaschaD</dc:creator>
      <dc:date>2022-03-17T09:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variable value does not appear in Email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-value-does-not-appear-in-Email/m-p/802598#M315969</link>
      <description>&lt;P&gt;Use double quotes instead of single quotes when you want to expand macro variables.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	PUT "unknown contracts: &amp;amp;count_NO_contract";
	PUT "unknown sales: &amp;amp;count_NO_sales";
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Mar 2022 09:44:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-value-does-not-appear-in-Email/m-p/802598#M315969</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-03-17T09:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variable value does not appear in Email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Variable-value-does-not-appear-in-Email/m-p/802610#M315977</link>
      <description>&lt;P&gt;The solution has already been given, but do you really store your dates like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE workday &amp;gt;= 20220201;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;
&lt;P&gt;If yes, it's a VERY BAD IDEA, as it deprives you of the use of all the nice tools SAS provides for dealing with dates, makes date calculations &lt;U&gt;very&lt;/U&gt; hard, and on top you have to use at least 5 numeric bytes to store them. SAS date values need only 4.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 10:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Variable-value-does-not-appear-in-Email/m-p/802610#M315977</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-17T10:57:20Z</dc:date>
    </item>
  </channel>
</rss>

