<?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: Proc Report refinement with style and title management in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/296055#M16786</link>
    <description>&lt;PRE&gt;
How about this one :


proc sort data=sashelp.baseball out=baseball;by team;run;
data have;
 set baseball;
 by team;
 where team like 'S%';
 if first.team then group+1;
run;

ods escapechar='^';
proc report data=have nowd noheader; 
column team group name position salary;
 
define group/ order noprint; 
define team / order noprint f=$60.;
define name / display 'Player' f=$60.;
define position / display style={cellwidth=4cm};
define salary / display style={cellwidth=4cm};
 
compute before _page_/ style={just=c color=white background=CX003366};
line "Test For Proc Report";
endcomp;

compute before/style={just=l};
line 'Start of Season';
endcomp;
 
compute before team/style(lines)={background=CX003366 color=white just=c} ;
line Team $20.;
endcomp;

compute before group
/style(lines)={borderwidth=1 background=CXC0C0C0 just=c vjust=m font_weight=bold} ;
line @2'Player' @22'Position(s) in 1986' @65'1987 Salary in $ Thousands';
endcomp;
run;
 

&lt;/PRE&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12920i91733D232278D5DF/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="x.png" title="x.png" /&gt;</description>
    <pubDate>Fri, 02 Sep 2016 06:36:48 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-09-02T06:36:48Z</dc:date>
    <item>
      <title>Proc Report refinement with style and title management</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/295863#M16759</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to produce a report which has the column titles just above each data row&amp;nbsp;in an ordered&amp;nbsp;input file.&amp;nbsp; In addition, I'm using a Line statement to show the value of the sorted variable, and wanted it the same color as tht titles across all rows, centered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have so far is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods escapechar='^';&lt;/P&gt;&lt;P&gt;proc report data=sashelp.baseball&lt;/P&gt;&lt;P&gt;style(header)={borderwidth=1 background=CXC0C0C0 just=c vjust=m font_weight=bold};&lt;/P&gt;&lt;P&gt;where team like 'S%';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;column team name position salary;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;define team / display order noprint f=$60.;&lt;/P&gt;&lt;P&gt;define name / display 'Player' f=$60.;&lt;/P&gt;&lt;P&gt;define position / display;&lt;/P&gt;&lt;P&gt;define salary / display;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;compute before / style={color=white background=CX003366};&lt;/P&gt;&lt;P&gt;line "Test For Proc Report";&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;compute before team / style={just=left};&lt;/P&gt;&lt;P&gt;line 'Start of Season';&lt;/P&gt;&lt;P&gt;l='^S={background=CX003366 color=white just=c}Team '||team;&lt;/P&gt;&lt;P&gt;line '^S={background=CX003366 color=white just=c}' team $;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this example, the team titles show above the members of that team in white letters with a blue background.&amp;nbsp; I need to have the entire line blue and the team name centered without the other lines in that compute block centered.&amp;nbsp; Apparently the compute style overrides the embedded line style.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd also like to be able to have the column titles between the team name and the rows of the players.&amp;nbsp; Is that possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Ben&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 14:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/295863#M16759</guid>
      <dc:creator>bconner</dc:creator>
      <dc:date>2016-09-01T14:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report refinement with style and title management</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/295873#M16762</link>
      <description>&lt;P&gt;Can you show an example of what this output should look like for two teams?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 15:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/295873#M16762</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-01T15:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report refinement with style and title management</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/295886#M16765</link>
      <description>&lt;P&gt;Would like to see something like this:&lt;/P&gt;
&lt;P&gt;&lt;IMG title="Capture.PNG" alt="Capture.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/4804i5D457CB44195920D/image-size/original?v=v2&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 15:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/295886#M16765</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-09-01T15:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report refinement with style and title management</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/296055#M16786</link>
      <description>&lt;PRE&gt;
How about this one :


proc sort data=sashelp.baseball out=baseball;by team;run;
data have;
 set baseball;
 by team;
 where team like 'S%';
 if first.team then group+1;
run;

ods escapechar='^';
proc report data=have nowd noheader; 
column team group name position salary;
 
define group/ order noprint; 
define team / order noprint f=$60.;
define name / display 'Player' f=$60.;
define position / display style={cellwidth=4cm};
define salary / display style={cellwidth=4cm};
 
compute before _page_/ style={just=c color=white background=CX003366};
line "Test For Proc Report";
endcomp;

compute before/style={just=l};
line 'Start of Season';
endcomp;
 
compute before team/style(lines)={background=CX003366 color=white just=c} ;
line Team $20.;
endcomp;

compute before group
/style(lines)={borderwidth=1 background=CXC0C0C0 just=c vjust=m font_weight=bold} ;
line @2'Player' @22'Position(s) in 1986' @65'1987 Salary in $ Thousands';
endcomp;
run;
 

&lt;/PRE&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12920i91733D232278D5DF/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="x.png" title="x.png" /&gt;</description>
      <pubDate>Fri, 02 Sep 2016 06:36:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/296055#M16786</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-09-02T06:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report refinement with style and title management</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/296144#M16790</link>
      <description>&lt;P&gt;Interesting.&amp;nbsp; That's an approach I hadn't considered.&amp;nbsp; The only down side I see is trying to align the titles above the columns.&amp;nbsp; The actual project has the output going to an excel spreadsheet with the tagsets.excelxp destination.&amp;nbsp; Will see if there is a way to 'suggest' alignment information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 15:49:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/296144#M16790</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-09-02T15:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report refinement with style and title management</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/296203#M16792</link>
      <description>Hi, the LINE statement will NOT work the way you envision. All the @ sign controls are ignored by ODS destinations. Just FYI. I may have something similar -- I'll check when I'm on the other computer.&lt;BR /&gt;cynthia</description>
      <pubDate>Fri, 02 Sep 2016 19:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/296203#M16792</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-09-02T19:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report refinement with style and title management</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/296284#M16796</link>
      <description>&lt;PRE&gt;
OK. Try this one :






proc sort data=sashelp.baseball out=baseball;by team;run;
data have;
length name position new_salary $ 40;
 set baseball;
 by team;
 where team like 'S%';
 if first.team then group+1;
 new_salary=put(salary,best.-l);
 drop salary;
run;
ods tagsets.excelxp file='/folders/myfolders/x.xml';
ods escapechar='^';
proc report data=have nowd noheader
style(summary)={borderwidth=1 background=CXC0C0C0 just=c vjust=m font_weight=bold} ; 
column team group name position new_salary;
 
define group/ order noprint; 
define team / order noprint ;
define name / display 'Player';
define position / display ;
define new_salary / display style={just=right};
 
compute before _page_/ style={just=c color=white background=CX003366};
line "Test For Proc Report";
endcomp;

compute before/style={just=l};
line 'Start of Season';
endcomp;
 
compute before team/style={background=CX003366 color=white just=c} ;
line Team $20.;
endcomp;

compute before group;
name='Player';
position='Position(s) in 1986';
new_salary='1987 Salary in $ Thousands';
endcomp;

break before group/summarize;
run;
ods tagsets.excelxp close;
 


&lt;/PRE&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12933iBB067F33CB0E4FB7/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="x.png" title="x.png" /&gt;</description>
      <pubDate>Sat, 03 Sep 2016 04:28:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/296284#M16796</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-09-03T04:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report refinement with style and title management</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/296311#M16798</link>
      <description>&lt;P&gt;Ok, that's just plain slick. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Outstanding!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much! It does exactly what I was looking for.&amp;nbsp; Just couldn't put it quite together.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will help a lot on the actual project I'm working on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--Ben&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 17:46:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-refinement-with-style-and-title-management/m-p/296311#M16798</guid>
      <dc:creator>BenConner</dc:creator>
      <dc:date>2016-09-03T17:46:52Z</dc:date>
    </item>
  </channel>
</rss>

