<?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: Aligning column vertical justification for HTML email output through proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Aligning-column-vertical-justification-for-HTML-email-output/m-p/602058#M23462</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that you have a bit "&lt;SPAN class="lia-inline-image-caption"&gt;Proc Report output in email" below the image. So this could also be related to email settings. Does that image reflect the appearance in the SAS Results window?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want better responses you might provide example data so we can test and modify code or use a SAS supplied data set for examples. Without data we can't actually test your code.&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also you may want to&amp;nbsp;tell us&amp;nbsp;what ODS style is in effect.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 16:42:21 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2019-11-06T16:42:21Z</dc:date>
    <item>
      <title>Aligning column vertical justification for HTML email output through proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Aligning-column-vertical-justification-for-HTML-email-output/m-p/601975#M23460</link>
      <description>&lt;P&gt;I'm attempting to vertical align columns of text and a formatted color dot through proc report through the "vjust" style option but "vjust" seems to have no effect on my output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
   value cfmt 
	0='red'
      0.000001-0.999999 ='yellow'
      1='green'
     	;
   value dot 
	low-high='^{style [vjust=c fontsize=20pt]^{unicode 25cf}}';
run;
ods escapechar="^";



	PROC REPORT DATA=compliance_lp headline headskip split='*' 
		style(column header summary) = {font_size=2 background=white font_face="Arial" vjust=c}; 

	column	completion_rate UT_ID;

	define completion_rate/ style(column)=[foreground=cfmt. vjust=c]  format=dot. ' ';

	DEFINE UT_ID /  group center 'Store' width=12;



	run;


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Proc Report output in email" style="width: 94px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33661iD1073AFA3CE71D66/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="Proc Report output in email" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Proc Report output in email&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The formatting of the dots is working as intended but I cannot get the dots center aligned with the text of the rest of the columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 13:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Aligning-column-vertical-justification-for-HTML-email-output/m-p/601975#M23460</guid>
      <dc:creator>gard111</dc:creator>
      <dc:date>2019-11-06T13:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning column vertical justification for HTML email output through proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Aligning-column-vertical-justification-for-HTML-email-output/m-p/602058#M23462</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that you have a bit "&lt;SPAN class="lia-inline-image-caption"&gt;Proc Report output in email" below the image. So this could also be related to email settings. Does that image reflect the appearance in the SAS Results window?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want better responses you might provide example data so we can test and modify code or use a SAS supplied data set for examples. Without data we can't actually test your code.&lt;/P&gt;
&lt;P&gt;Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also you may want to&amp;nbsp;tell us&amp;nbsp;what ODS style is in effect.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:42:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Aligning-column-vertical-justification-for-HTML-email-output/m-p/602058#M23462</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-11-06T16:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning column vertical justification for HTML email output through proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Aligning-column-vertical-justification-for-HTML-email-output/m-p/602566#M23483</link>
      <description>&lt;P&gt;Here is a sample dataset and code that is producing the same issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data weight2;  
   infile datalines missover;
   input IDnumber $ Week1 Week16;  
   WeightLoss2=Week1-Week16;
   datalines; 
2477 195  163
2456 173  155
2412 135  116
;





proc format;
   value cfmt 
	0-140='red'
      140-180 ='yellow'
      180-200='green'
     	;
   value dot 
	low-high='^{style [vjust=c fontsize=20pt]^{unicode 25cf}}';
run;
ods escapechar="^";

	options emailsys= ;
	options emailauthprotocol=none;
	options emailhost= ;
	/*options emailport=25;*/
	options emailID = ;
	options emailpw = ;



	filename temp email
	to = 
/*	cc = */
/*	bcc = */
	subject="test"
	type="text/html"
	from =  ;


	title;
	ODS html body=temp; 


	PROC REPORT DATA=weight2 headline headskip split='*' 
		style(column header summary) = {font_size=2 background=white font_face="Arial" vjust=c}; 

	column	Week1 IDNUMBER;

	define Week1/ style(column)=[foreground=cfmt. vjust=c]  format=dot. ' ';
	DEFINE IDNUMBER /  group style(column)=[vjust=c] center 'ID' width=12;
	
	run;

	ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;SAS does not seem able to render this output within SAS, so the only output I have is the actual email I am receiving through outlook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 123px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33759i7BEC43606140A2FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 19:49:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Aligning-column-vertical-justification-for-HTML-email-output/m-p/602566#M23483</guid>
      <dc:creator>gard111</dc:creator>
      <dc:date>2019-11-07T19:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aligning column vertical justification for HTML email output through proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Aligning-column-vertical-justification-for-HTML-email-output/m-p/602782#M23487</link>
      <description>Hi:&lt;BR /&gt;  I believe the issue is that you are using 2 different font sizes, the centering is based on the font size. You have a fixed font size of 20pt for the dot and a relative font size of 2 (which each browser can translate differently) for the header and columns, etc. I think that if you make both font sizes the same, like 18pt or 20pt for both the dot and the cell contents, that the justification will be closer to what you want.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Fri, 08 Nov 2019 17:18:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Aligning-column-vertical-justification-for-HTML-email-output/m-p/602782#M23487</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-11-08T17:18:19Z</dc:date>
    </item>
  </channel>
</rss>

