<?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: How to left align _INFILE_ in an email in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-INFILE-in-an-email/m-p/839153#M331801</link>
    <description>&lt;P&gt;Thank you, that did the job.&lt;/P&gt;
&lt;P&gt;Always nice when there exists simple solutions.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 11:21:22 GMT</pubDate>
    <dc:creator>fre</dc:creator>
    <dc:date>2022-10-18T11:21:22Z</dc:date>
    <item>
      <title>How to left align _INFILE_ in an email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-INFILE-in-an-email/m-p/839136#M331789</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;i'm using some code - see below - to send myself an e-mail, where the body contains:&lt;/P&gt;
&lt;P&gt;- first paragraph&lt;/P&gt;
&lt;P&gt;- output from a table&lt;/P&gt;
&lt;P&gt;- last paragraph&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first and last paragraph are left-aligned, which is good.&lt;/P&gt;
&lt;P&gt;But the output from the table is center-aligned, which I want to change to also left-aligned.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't make that work.&lt;/P&gt;
&lt;P&gt;What I tried to do in my code below is &lt;EM&gt;&lt;STRONG&gt;put '&amp;lt;p align="left"&amp;gt; _infile_ &amp;lt;/p&amp;gt;';&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;-&amp;nbsp;but that didn't give me the wanted result.&lt;/P&gt;
&lt;P&gt;Does anyone has a solution for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%macro email_output;

%if &amp;amp;totobs. &amp;gt; 0 %then %do;

	filename REPORT "%sysfunc(pathname(work))\test.html";
		filename SEND email to           = "x.y@z.z.z"
		                    subject      = "WEBSERV: error!"
		                    from         = "x.y@z.z.z"
		                    content_type = "text/html";


		ods html file=REPORT;
		proc print data=WORK.QUERY_CHECK_DOUBLES; run;
		ods html close;

		data _null_;
					
		  infile REPORT;
		  file SEND;
		  input;

			if _infile_ = '&amp;lt;html&amp;gt;' 
				then do;
					put '&amp;lt;p&amp;gt;First Paragraph &amp;lt;/p&amp;gt;';
					
				end;
		  		

			if _infile_ ne '&amp;lt;/html&amp;gt;' 
				then
					put _infile_ ; 
					/* put '&amp;lt;p align="left"&amp;gt; _infile_ &amp;lt;/p&amp;gt;';*/
		  		else do;
		  			put '&amp;lt;p&amp;gt;Last Paragraph&amp;lt;/p&amp;gt;&amp;lt;/html&amp;gt;';
		  		end;
		run;




%end;

%mend;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Oct 2022 08:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-INFILE-in-an-email/m-p/839136#M331789</guid>
      <dc:creator>fre</dc:creator>
      <dc:date>2022-10-18T08:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to left align _INFILE_ in an email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-INFILE-in-an-email/m-p/839151#M331799</link>
      <description>&lt;P&gt;Have you tried&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nocenter;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 11:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-INFILE-in-an-email/m-p/839151#M331799</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-10-18T11:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to left align _INFILE_ in an email</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-INFILE-in-an-email/m-p/839153#M331801</link>
      <description>&lt;P&gt;Thank you, that did the job.&lt;/P&gt;
&lt;P&gt;Always nice when there exists simple solutions.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 11:21:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-left-align-INFILE-in-an-email/m-p/839153#M331801</guid>
      <dc:creator>fre</dc:creator>
      <dc:date>2022-10-18T11:21:22Z</dc:date>
    </item>
  </channel>
</rss>

