<?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: excelxp proc report: bold lines between groups in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelxp-proc-report-bold-lines-between-groups/m-p/41182#M5618</link>
    <description>I like this idea:&lt;BR /&gt;
compute after num;  line ' ';endcomp;&lt;BR /&gt;
I will look into the proc template idea.&lt;BR /&gt;
Thank you.</description>
    <pubDate>Tue, 30 Nov 2010 20:31:27 GMT</pubDate>
    <dc:creator>gzr2mz39</dc:creator>
    <dc:date>2010-11-30T20:31:27Z</dc:date>
    <item>
      <title>excelxp proc report: bold lines between groups</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelxp-proc-report-bold-lines-between-groups/m-p/41178#M5614</link>
      <description>Is there a way to create bold, black lines between groups (ie variable "num")?&lt;BR /&gt;
Also, is there a way to create a space between groups?&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp file="C:\Documents and Settings\LA_Training.xls"&lt;BR /&gt;
	style=journal&lt;BR /&gt;
	options(frozen_headers='1'&lt;BR /&gt;
		    autofit_height='yes'&lt;BR /&gt;
			absolute_column_width='4,15,8,15,6,15,20,20,25')&lt;BR /&gt;
;&lt;BR /&gt;
&lt;BR /&gt;
proc report data=traininj1 nowd contents="Claims" out=test&lt;BR /&gt;
	style(header)=[font_weight=bold]; &lt;BR /&gt;
	options missing='0';&lt;BR /&gt;
	column num job_class date1 type;&lt;BR /&gt;
	define num / group 'ID' style(column)={just=l} order=data;&lt;BR /&gt;
	define job_class / 'Job' style(column)={just=l};&lt;BR /&gt;
	define date1 / 'Date';&lt;BR /&gt;
	define type / 'Class/Injury'; &lt;BR /&gt;
	compute type;&lt;BR /&gt;
		if type in ("Incident Only") then call define(_row_,"style","style=[background=yellow]");&lt;BR /&gt;
	endcomp;&lt;BR /&gt;
	break after num/ ol skip;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ods tagsets.excelxp close;</description>
      <pubDate>Mon, 29 Nov 2010 21:57:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelxp-proc-report-bold-lines-between-groups/m-p/41178#M5614</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2010-11-29T21:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: excelxp proc report: bold lines between groups</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelxp-proc-report-bold-lines-between-groups/m-p/41179#M5615</link>
      <description>Hi:&lt;BR /&gt;
  PROC REPORT options like OL and SKIP are only designed for the LISTING destination and, as you have seen, have no impact on HTML, RTF, PDF or TAGSETS.EXCELXP destinations. &lt;BR /&gt;
             &lt;BR /&gt;
  However, to put the equivalent of a skip between groups, if NUM is your GROUP or ORDER item, you can do this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
compute after num;&lt;BR /&gt;
  line ' ';&lt;BR /&gt;
endcomp;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
And the LINE statement will put the equivalent of a skipped line between each unique value of NUM.&lt;BR /&gt;
 &lt;BR /&gt;
Also, you should probably change the usage of NUM to ORDER or else change the usage of JOB_CLASS to either ORDER or GROUP, so you can avoid this message in the log:&lt;BR /&gt;
[pre]&lt;BR /&gt;
NOTE: Groups are not created because the usage of job_class is DISPLAY. To avoid this note,&lt;BR /&gt;
change all GROUP variables to ORDER variables.&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                       &lt;BR /&gt;
As far as changing the interior table lines, the JOURNAL style, normally, does not have any interior table lines. So the concept of re-creating the overline (OL) at the break is not something that is easily done in the Excel XML.&lt;BR /&gt;
 &lt;BR /&gt;
For HTML, the  "workaround" to simulate an overline is shown in this Tech Support set of examples: &lt;A href="http://support.sas.com/rnd/base/ods/templateFAQ/report1.html" target="_blank"&gt;http://support.sas.com/rnd/base/ods/templateFAQ/report1.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
But Excel does not respect the HTMLSTYLE method. So that leaves you with fiddling with the border top/border bottom style elements. The style element that controls the LINE output is the NoteContent style element. In the program below, I modify the NoteContent style element to have a border top of solid black and to have a background and foreground color of pink. These may not be the colors you want, but you can see what gets changed. That change is done in the style template, to show the type of change you can make at the template level for the LINE output.&lt;BR /&gt;
&lt;BR /&gt;
  Without the SUMMARIZE option, you do not get any summary numbers -- so in my program the WEIGHT variable is a DISPLAY usage, so it is not summarized, while the HEIGHT variable is a SUM usage, so it will be summarized. The style of the SUMMARY line is changed in a style override to alter the bordertopstyle and bordertopwidth, etc. &lt;BR /&gt;
&lt;BR /&gt;
Between these 2 techniques, you should be able to simulate the OL and the SKIP for TAGSETS.EXCELXP output. This worked for me in SAS 9.2 with Excel 2010.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
                                              &lt;BR /&gt;
ods path work.tmp(update) &lt;BR /&gt;
         sasuser.templat(update)&lt;BR /&gt;
         sashelp.tmplmst(read);&lt;BR /&gt;
                                              &lt;BR /&gt;
proc template;&lt;BR /&gt;
  define style styles.myjour;&lt;BR /&gt;
  parent=styles.journal;&lt;BR /&gt;
  class NoteContent /&lt;BR /&gt;
     foreground=pink&lt;BR /&gt;
     background=pink&lt;BR /&gt;
     bordertopstyle=solid&lt;BR /&gt;
     bordertopcolor=black&lt;BR /&gt;
     bordertopwidth=2;&lt;BR /&gt;
  end;&lt;BR /&gt;
run;&lt;BR /&gt;
                                              &lt;BR /&gt;
ods tagsets.excelxp file="C:\temp\LA_Training.xls"&lt;BR /&gt;
    style=styles.myjour&lt;BR /&gt;
    options(doc='Help');&lt;BR /&gt;
           &lt;BR /&gt;
options missing='0';&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
proc report data=sashelp.class nowd contents="Claims" &lt;BR /&gt;
     out=test&lt;BR /&gt;
     style(summary)=Header{foreground=purple background=cxeeeeee&lt;BR /&gt;
                    bordertopwidth=2 borderbottomwidth=0&lt;BR /&gt;
                    bordertopcolor=cyan borderbottomcolor=_undef_&lt;BR /&gt;
                    bordertopstyle=solid borderbottomstyle=_undef_}; &lt;BR /&gt;
  column age sex name weight height;&lt;BR /&gt;
  define age / order 'ID' style(column)={just=l};&lt;BR /&gt;
  define sex / display 'Job' style(column)={just=l};&lt;BR /&gt;
  define name / display 'Date';&lt;BR /&gt;
  define weight / display  'Class/Injury'; &lt;BR /&gt;
  define height /sum;&lt;BR /&gt;
  break after age / summarize ;&lt;BR /&gt;
  compute sex;&lt;BR /&gt;
    if sex eq 'F' then &lt;BR /&gt;
       call define(_row_,"style","style=[background=yellow]");&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
                                              &lt;BR /&gt;
  compute after age;&lt;BR /&gt;
    line ' ';&lt;BR /&gt;
  endcomp; &lt;BR /&gt;
run;&lt;BR /&gt;
                                              &lt;BR /&gt;
ods tagsets.excelxp close; &lt;BR /&gt;
[/pre]</description>
      <pubDate>Tue, 30 Nov 2010 01:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelxp-proc-report-bold-lines-between-groups/m-p/41179#M5615</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-11-30T01:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: excelxp proc report: bold lines between groups</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelxp-proc-report-bold-lines-between-groups/m-p/41180#M5616</link>
      <description>Just to add something into Cynthia's code.&lt;BR /&gt;
[pre]&lt;BR /&gt;
                                             &lt;BR /&gt;
ods tagsets.excelxp file="C:\temp\LA.xls"&lt;BR /&gt;
    style=listing&lt;BR /&gt;
    options(doc='Help');&lt;BR /&gt;
           &lt;BR /&gt;
options missing='0';&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods escapechar='~';&lt;BR /&gt;
proc report data=sashelp.class nowd contents="Claims" &lt;BR /&gt;
     out=test&lt;BR /&gt;
     style(summary)=Header{foreground=purple background=cxeeeeee&lt;BR /&gt;
                    bordertopwidth=2 borderbottomwidth=0&lt;BR /&gt;
                    bordertopcolor=cyan borderbottomcolor=_undef_&lt;BR /&gt;
                    bordertopstyle=solid borderbottomstyle=_undef_}; &lt;BR /&gt;
  column age sex name weight height;&lt;BR /&gt;
  define age / order 'ID' style(column)={just=l};&lt;BR /&gt;
  define sex / display 'Job' style(column)={just=l};&lt;BR /&gt;
  define name / display 'Date';&lt;BR /&gt;
  define weight / display  'Class/Injury'; &lt;BR /&gt;
  define height /sum;&lt;BR /&gt;
  break after age / summarize ;&lt;BR /&gt;
  compute sex;&lt;BR /&gt;
    if sex eq 'F' then &lt;BR /&gt;
       call define(_row_,"style","style=[background=yellow]");&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
                                              &lt;BR /&gt;
  compute after age;&lt;BR /&gt;
&lt;B&gt;    str=repeat('=',44)	;&lt;BR /&gt;
	line  "~S={font_weight=bold} " str $44.;&lt;/B&gt;&lt;BR /&gt;
    line ' ';&lt;BR /&gt;
  endcomp; &lt;BR /&gt;
run;&lt;BR /&gt;
                                              &lt;BR /&gt;
ods tagsets.excelxp close; &lt;BR /&gt;
ods listing;&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
And hope Cynthia can use ODS ESCAPECHAR to make the underline blod.&lt;BR /&gt;
&lt;BR /&gt;
Ksharp&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: Ksharp</description>
      <pubDate>Tue, 30 Nov 2010 02:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelxp-proc-report-bold-lines-between-groups/m-p/41180#M5616</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-11-30T02:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: excelxp proc report: bold lines between groups</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelxp-proc-report-bold-lines-between-groups/m-p/41181#M5617</link>
      <description>Hi,&lt;BR /&gt;
Sorry, using repeat to write 44 equal signs seems sort of "LISTING-ish" to me and it is not a technique that I would use with any non-LISTING destination. Besides, the OP was using OL, so I don't see where the equal signs are needed.&lt;BR /&gt;
&lt;BR /&gt;
Besides BORDERTOPSTYLE seems to work with TAGSETS.EXCELXP and Excel, For a finer level of control, each column could have the bordertopstyle turned on or off as needed. If you want to use LISTING techniques, then OL and SKIP, etc will work just fine -- in the LISTING window. &lt;BR /&gt;
&lt;BR /&gt;
ODS RTF, PDF, HTML or TAGSETS.EXCELXP --are just not the same as the LISTING window and, personally, I would not spend too much time working on trying to replicate a LISTING look and feel. &lt;BR /&gt;
&lt;BR /&gt;
Cynthia</description>
      <pubDate>Tue, 30 Nov 2010 05:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelxp-proc-report-bold-lines-between-groups/m-p/41181#M5617</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-11-30T05:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: excelxp proc report: bold lines between groups</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelxp-proc-report-bold-lines-between-groups/m-p/41182#M5618</link>
      <description>I like this idea:&lt;BR /&gt;
compute after num;  line ' ';endcomp;&lt;BR /&gt;
I will look into the proc template idea.&lt;BR /&gt;
Thank you.</description>
      <pubDate>Tue, 30 Nov 2010 20:31:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/excelxp-proc-report-bold-lines-between-groups/m-p/41182#M5618</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2010-11-30T20:31:27Z</dc:date>
    </item>
  </channel>
</rss>

