<?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: Email code works in EG not in DI in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Email-code-works-in-EG-not-in-DI/m-p/196356#M49102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be great if you could have the example using SASHELP.CLASS so everyone could test it.&lt;/P&gt;&lt;P&gt;What does the log say?&lt;/P&gt;&lt;P&gt;I see no macro variables, but this is just for testing? Wouldn't be of much use to have it in a User Written Transform otherwise.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are you using the same user?&lt;/LI&gt;&lt;LI&gt;Is it on the same Workspace Server?&lt;/LI&gt;&lt;LI&gt;What happens if you deploy the job an run it in batch?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2015 14:10:00 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2015-07-06T14:10:00Z</dc:date>
    <item>
      <title>Email code works in EG not in DI</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-code-works-in-EG-not-in-DI/m-p/196355#M49101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;This code works in EG and emails out fine. As soon as i put this into a user written transformation, nothing happens. The job runs with no errors but no email comes through.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Any Idea's?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thanks, Les &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FILENAME mail EMAIL TO=("xxx@xxx")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SUBJECT="Lunch Time Adherence - &amp;amp;sysdate." CONTENT_TYPE="text/html";&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ODS LISTING CLOSE;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ODS HTML BODY=mail;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc report data=sme_ad.lunch_adherance ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Agent&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Lunch_Start&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Formula_Act_Lunch_Start&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Adherance;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; compute adherance;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if adherance = "Adherent Lunch" then call define(_col_,"style","style={background=lightgreen}");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if adherance = "Adherent Lunch - Calls Prevented" then call define(_col_,"style","style={background=green}");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if adherance = "Non-Adherent Lunch - No Calls Prevented" then call define(_col_,"style","style={background=red}");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if adherance = "Non-Adherent Lunch" then call define(_col_,"style","style={background=red}");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; if adherance = "Non-Adherent Lunch (Before Planned Lunch)" then call define(_col_,"style","style={background=red}");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; endcomp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; run;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 13:58:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-code-works-in-EG-not-in-DI/m-p/196355#M49101</guid>
      <dc:creator>Leslie6860</dc:creator>
      <dc:date>2015-07-06T13:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Email code works in EG not in DI</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Email-code-works-in-EG-not-in-DI/m-p/196356#M49102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be great if you could have the example using SASHELP.CLASS so everyone could test it.&lt;/P&gt;&lt;P&gt;What does the log say?&lt;/P&gt;&lt;P&gt;I see no macro variables, but this is just for testing? Wouldn't be of much use to have it in a User Written Transform otherwise.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are you using the same user?&lt;/LI&gt;&lt;LI&gt;Is it on the same Workspace Server?&lt;/LI&gt;&lt;LI&gt;What happens if you deploy the job an run it in batch?&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 14:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Email-code-works-in-EG-not-in-DI/m-p/196356#M49102</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-07-06T14:10:00Z</dc:date>
    </item>
  </channel>
</rss>

