<?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: Selective bolding and indenting using PROC REPORT and ODS EXCELXP tagsets in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Selective-bolding-and-indenting-using-PROC-REPORT-and-ODS/m-p/374734#M18938</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Did you check the documentation on INDENT? I am not sure that all destinations support indenting. RTF and PDF are most reliable, but I would not expect TAGSETS.EXCELXP or ODS EXCEL or even ODS HTML to support INDENT. You did not show your ODS statements. When I ran this quick test, only RTF and PDF were indented:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html file='c:\temp\tryindent.html';
ods rtf file='c:\temp\tryindent.rtf';
ods pdf file='c:\temp\tryindent.pdf';
ods excel file='c:\temp\tryindent_xl.xlsx';
ods tagsets.excelxp file='c:\temp\tryindent_xp.xml' style=htmlblue;

proc report data=sashelp.class;
  where name in ('Alfred', 'Barbara','John', 'Robert');
  column name age height weight sex;
  define name / order style(column)={width=2in};
  compute name;
    if name in ('Alfred', 'John') then 
	   call define(_col_,'style','style={font_size=11pt font_weight=bold}');
	else call define(_col_,'style','style={leftmargin=.25in font_weight=medium}');
  endcomp;
run;

ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I suspect when you check the doc, you will find that however you created and are using "rightIndent" -- that it may not be supported in ODS TAGSETS.EXCELXP or ODS EXCEL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jul 2017 22:45:46 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-07-10T22:45:46Z</dc:date>
    <item>
      <title>Selective bolding and indenting using PROC REPORT and ODS EXCELXP tagsets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Selective-bolding-and-indenting-using-PROC-REPORT-and-ODS/m-p/374692#M18935</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to bold certain rows that I'm printing out using proc report and ods &lt;SPAN&gt;EXCELXP tagset&lt;/SPAN&gt;, and then indent the rows that don't get bolded. How can I do this? It's not showing up in my output &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; &amp;nbsp;The indented rows show up as indented in the dataset (see attached picture). When I use proc report they also look indented (&lt;SPAN&gt;see attached picture&lt;/SPAN&gt;). However, when I use ods tagsets to get the report to excel, the rows are not indented (&lt;SPAN&gt;see attached picture&lt;/SPAN&gt;).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is some sample code:&lt;/P&gt;
&lt;PRE&gt;PROC REPORT DATA = tempdata;
	column classval0 ORCL_M1 p_M1 ORCL_M2 p_M2 ORCL_M3 p_M3 ORCL_M4 p_M4 ORCL_M5 p_M5;&lt;BR /&gt;        &lt;BR /&gt;        /*align the p-values by decimal places, also highlight the significant ones*/
	define  ORCL_M1  / display center style(column) = [background=sigf.];
	define  p_M1     / display center style(column) = [background=sigf. just = d];
	 

 	define  classval0 / DISPLAY style=[asis=on];
	/*We want to bold the following words in classval0*/
	compute classval0;
		if classval0 in ("Intercept", 
					"Race (REF = White)"										,
					"Female"													,
					"LGBT (REF = Heterosexual"									,
					"Marital status (REF = Married)"							,
					"At least 1 child &amp;lt;18"										,
					"Never deployed (REF = Ever deployed)"						,
					"Combat zone deployments (REF = 3+ deployments)"			,
					"Length of deployment (REF = No deployment in past 12 mo)"	, 
					"Service Branch (REF = USCG)"								,
					"Pay Grade (REF = O1-O10)"									,
					"Age Group (REF = 25-34)")									
		then call define ('_c1_', 
					"style", 
					"style = [font_weight=bold]");&lt;BR /&gt;
		/*I want to indent the words that we did not bold in classval0*/
			else call define ('_c1_', "style", "style = [rightIndent]");
		 endcomp;
 run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I found some useful sugi reports that other users posted in similar questions to this (that's how I thought to use the "rightindent" statement, even though I dont' think I used ti correctly), as well as the justify=d and font_weight=bold option. Something is off about mine though &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;in my macro to create an excel sheet, i use the styles.xlstatistical option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any advice and help would be greatly appreciated. Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PS - I've tried to post this question 3 times and it got rejected so I'm hoping this is useful.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/14063iB6AFDB15C6C3A752/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="output.JPG" title="output.JPG" /&gt;</description>
      <pubDate>Mon, 10 Jul 2017 20:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Selective-bolding-and-indenting-using-PROC-REPORT-and-ODS/m-p/374692#M18935</guid>
      <dc:creator>ginak</dc:creator>
      <dc:date>2017-07-10T20:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Selective bolding and indenting using PROC REPORT and ODS EXCELXP tagsets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Selective-bolding-and-indenting-using-PROC-REPORT-and-ODS/m-p/374734#M18938</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Did you check the documentation on INDENT? I am not sure that all destinations support indenting. RTF and PDF are most reliable, but I would not expect TAGSETS.EXCELXP or ODS EXCEL or even ODS HTML to support INDENT. You did not show your ODS statements. When I ran this quick test, only RTF and PDF were indented:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html file='c:\temp\tryindent.html';
ods rtf file='c:\temp\tryindent.rtf';
ods pdf file='c:\temp\tryindent.pdf';
ods excel file='c:\temp\tryindent_xl.xlsx';
ods tagsets.excelxp file='c:\temp\tryindent_xp.xml' style=htmlblue;

proc report data=sashelp.class;
  where name in ('Alfred', 'Barbara','John', 'Robert');
  column name age height weight sex;
  define name / order style(column)={width=2in};
  compute name;
    if name in ('Alfred', 'John') then 
	   call define(_col_,'style','style={font_size=11pt font_weight=bold}');
	else call define(_col_,'style','style={leftmargin=.25in font_weight=medium}');
  endcomp;
run;

ods _all_ close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I suspect when you check the doc, you will find that however you created and are using "rightIndent" -- that it may not be supported in ODS TAGSETS.EXCELXP or ODS EXCEL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 22:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Selective-bolding-and-indenting-using-PROC-REPORT-and-ODS/m-p/374734#M18938</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-07-10T22:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Selective bolding and indenting using PROC REPORT and ODS EXCELXP tagsets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Selective-bolding-and-indenting-using-PROC-REPORT-and-ODS/m-p/374746#M18939</link>
      <description>&lt;P&gt;Hi Cynthia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your suggestions! AFter reading your suggestion, I did some research. I guess I did not properly define my rightIndent and assumed it was a sas option. I did some research and found that I need to define it in a proc template, as was done in this paper:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.lexjansen.com/nesug/nesug09/np/NP03.pdf" target="_blank"&gt;http://www.lexjansen.com/nesug/nesug09/np/NP03.pdf&lt;/A&gt; in the compute c block at the bottom of page 8. They explain it a bit at the top of page 9. They said earlier in the document that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Both of these SAS datasets include character variables that are indented to the right (PATCHAR for Table 1 and EFFECT_NAME for Table 2). These indentations were created simply by concatenating the string 'A0A0A0A0'x at the beginning of the character variable.&lt;/P&gt;
&lt;PRE&gt;patchar = catx('','A0A0A0A0'x, (put(&amp;amp;rowvar,&amp;amp;&amp;amp;&amp;amp;rowvar.fmt)); &lt;/PRE&gt;
&lt;P&gt;"&lt;/P&gt;
&lt;P&gt;I'll try this out tomorrow and see if it works!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 00:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Selective-bolding-and-indenting-using-PROC-REPORT-and-ODS/m-p/374746#M18939</guid>
      <dc:creator>ginak</dc:creator>
      <dc:date>2017-07-11T00:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Selective bolding and indenting using PROC REPORT and ODS EXCELXP tagsets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Selective-bolding-and-indenting-using-PROC-REPORT-and-ODS/m-p/374751#M18940</link>
      <description>Ah, that may work because they are padding the character string on the left with unprintable hex characters.&lt;BR /&gt;&lt;BR /&gt;In my experience, most of these demographic reports are usually done in RTF and PDF, where it is far easier to use the simple LEFTMARGIN= to perform the indenting.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Tue, 11 Jul 2017 00:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Selective-bolding-and-indenting-using-PROC-REPORT-and-ODS/m-p/374751#M18940</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-07-11T00:46:59Z</dc:date>
    </item>
  </channel>
</rss>

