<?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: Equivalent of #byval() in PROC REPORT/PRINT? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Equivalent-of-byval-in-PROC-REPORT-PRINT/m-p/847687#M26097</link>
    <description>&lt;P&gt;Never mind again. Figured adding "style(header)=[bordertopwidth=0.5pt bordertopcolor=black]" did the trick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
  define style styles.test1;
	parent=styles.printer;
	style fonts /
      'TitleFont' = ("Albany AMT",13pt,bold)
	  'TitleFont2' = ("Albany AMT",13pt,bold)
      'StrongFont' = ("&amp;lt;MTserif&amp;gt;, Times Roman",10pt,bold)
      'EmphasisFont' = ("Calibri",10pt,bold)
      'FixedEmphasisFont' = ("&amp;lt;MTmonospace&amp;gt;, Courier",9pt,italic)
      'FixedStrongFont' = ("&amp;lt;MTmonospace&amp;gt;, Courier",9pt,bold)
      'BatchFixedFont' = ("SAS Monospace, &amp;lt;MTmonospace&amp;gt;, Courier",6.7pt)
      'FixedFont' = ("&amp;lt;MTmonospace&amp;gt;, Courier",9pt)
      'headingFont' = ("&amp;lt;MTserif&amp;gt;, Times Roman",11pt,bold)
	  'docFont'=("Albany AMT",10pt)
	  ;
	style systemtitle from TitlesAndFooters /
	  just=center
	  vjust=center
	;
	style Body from Document /
      marginbottom = 0.5in
      margintop = 0.5in
      marginright = 0.25in
      marginleft = 0.25in;
	style Table from Output /
	  frame=below
      rules = none
	  borderspacing=0
      borderwidth=0.5pt
      borderstyle = solid
	  font=fonts('docFont')
	;
	style header from table /
	  just=right
	  vjust=middle
	  fontsize=11pt
	  fontweight=bold
	  background=white
	;
	class cell /
	  paddingleft=1pt
	  paddingright=1pt
	;
  end;
run;


data example;
  input name $ num;
  datalines;
Bob 12
Jill 19
Bob 23
Jill 40
;
run;


ods pdf file="example.pdf" notoc style=styles.test1;

proc report data=example nowd
	style(header)=[bordertopwidth=0.5pt bordertopcolor=black]
;
  column name num;

  define name / order order=internal format=$4.;

  break after name / page;
  compute before _page_ / style=header{just=l};
	line name $4.;
  endcomp;
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 04 Dec 2022 23:41:41 GMT</pubDate>
    <dc:creator>BigPete</dc:creator>
    <dc:date>2022-12-04T23:41:41Z</dc:date>
    <item>
      <title>Equivalent  of #byval() in PROC REPORT/PRINT?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Equivalent-of-byval-in-PROC-REPORT-PRINT/m-p/847654#M26095</link>
      <description>&lt;P&gt;Hi! Is there a way to work an equivalent of #byval() into the "compute before _page_" part of PROC REPORT? It seems that #byval and #byvar only works for TITLE statements. TIA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
  input name $ num;
  datalines;
Bob 12
Jill 19
Bob 23
Jill 40
;
proc sort; by name; run;

options nobyline;

proc report data=example nowd;
  by name;
/*  title "#byval(name)";*/
  column name num;
  compute before _page_ / style=header{just=l};
	line "#byval(name)";
  endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Dec 2022 18:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Equivalent-of-byval-in-PROC-REPORT-PRINT/m-p/847654#M26095</guid>
      <dc:creator>BigPete</dc:creator>
      <dc:date>2022-12-04T18:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Equivalent of #byval() in PROC REPORT/PRINT?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Equivalent-of-byval-in-PROC-REPORT-PRINT/m-p/847665#M26096</link>
      <description>&lt;P&gt;Never mind. Further Googling helped me to figure it out. I already figured out keeping the bottom border. But how do I insert the top border to make the tables look like these?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BigPete_0-1670185983822.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77997i55F0D7598FE08914/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BigPete_0-1670185983822.png" alt="BigPete_0-1670185983822.png" /&gt;&lt;/span&gt;&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="BigPete_1-1670186017249.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/77998iA250C3CAA281633B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BigPete_1-1670186017249.png" alt="BigPete_1-1670186017249.png" /&gt;&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;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc template;
  define style styles.test1;
	parent=styles.printer;
	style fonts /
      'TitleFont' = ("Albany AMT",13pt,bold)
	  'TitleFont2' = ("Albany AMT",13pt,bold)
      'StrongFont' = ("&amp;lt;MTserif&amp;gt;, Times Roman",10pt,bold)
      'EmphasisFont' = ("Calibri",10pt,bold)
      'FixedEmphasisFont' = ("&amp;lt;MTmonospace&amp;gt;, Courier",9pt,italic)
      'FixedStrongFont' = ("&amp;lt;MTmonospace&amp;gt;, Courier",9pt,bold)
      'BatchFixedFont' = ("SAS Monospace, &amp;lt;MTmonospace&amp;gt;, Courier",6.7pt)
      'FixedFont' = ("&amp;lt;MTmonospace&amp;gt;, Courier",9pt)
      'headingFont' = ("&amp;lt;MTserif&amp;gt;, Times Roman",11pt,bold)
	  'docFont'=("Albany AMT",10pt)
	  ;
	style systemtitle from TitlesAndFooters /
	  just=center
	  vjust=center
	;
	style Body from Document /
      marginbottom = 0.5in
      margintop = 0.5in
      marginright = 0.25in
      marginleft = 0.25in;
	style Table from Output /
	  frame=below
      rules = none
	  borderspacing=0
      borderwidth=0.5pt
      borderstyle = solid
	  font=fonts('docFont')
	;
	style header from table /
	  just=right
	  vjust=middle
	  fontsize=11pt
	  fontweight=bold
	  background=white
	;
	class cell /
	  paddingleft=1pt
	  paddingright=1pt
	;
  end;
run;


data example;
  input name $ num;
  datalines;
Bob 12
Jill 19
Bob 23
Jill 40
;
run;


ods pdf file="example.pdf" notoc style=styles.test1;

proc report data=example nowd;
  column name num;

  define name / order order=internal format=$4.;

  break after name / page;
  compute before _page_ / style=header{just=l};
	line name $4.;
  endcomp;
run;

ods pdf close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2022 20:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Equivalent-of-byval-in-PROC-REPORT-PRINT/m-p/847665#M26096</guid>
      <dc:creator>BigPete</dc:creator>
      <dc:date>2022-12-04T20:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Equivalent of #byval() in PROC REPORT/PRINT?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Equivalent-of-byval-in-PROC-REPORT-PRINT/m-p/847687#M26097</link>
      <description>&lt;P&gt;Never mind again. Figured adding "style(header)=[bordertopwidth=0.5pt bordertopcolor=black]" did the trick.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
  define style styles.test1;
	parent=styles.printer;
	style fonts /
      'TitleFont' = ("Albany AMT",13pt,bold)
	  'TitleFont2' = ("Albany AMT",13pt,bold)
      'StrongFont' = ("&amp;lt;MTserif&amp;gt;, Times Roman",10pt,bold)
      'EmphasisFont' = ("Calibri",10pt,bold)
      'FixedEmphasisFont' = ("&amp;lt;MTmonospace&amp;gt;, Courier",9pt,italic)
      'FixedStrongFont' = ("&amp;lt;MTmonospace&amp;gt;, Courier",9pt,bold)
      'BatchFixedFont' = ("SAS Monospace, &amp;lt;MTmonospace&amp;gt;, Courier",6.7pt)
      'FixedFont' = ("&amp;lt;MTmonospace&amp;gt;, Courier",9pt)
      'headingFont' = ("&amp;lt;MTserif&amp;gt;, Times Roman",11pt,bold)
	  'docFont'=("Albany AMT",10pt)
	  ;
	style systemtitle from TitlesAndFooters /
	  just=center
	  vjust=center
	;
	style Body from Document /
      marginbottom = 0.5in
      margintop = 0.5in
      marginright = 0.25in
      marginleft = 0.25in;
	style Table from Output /
	  frame=below
      rules = none
	  borderspacing=0
      borderwidth=0.5pt
      borderstyle = solid
	  font=fonts('docFont')
	;
	style header from table /
	  just=right
	  vjust=middle
	  fontsize=11pt
	  fontweight=bold
	  background=white
	;
	class cell /
	  paddingleft=1pt
	  paddingright=1pt
	;
  end;
run;


data example;
  input name $ num;
  datalines;
Bob 12
Jill 19
Bob 23
Jill 40
;
run;


ods pdf file="example.pdf" notoc style=styles.test1;

proc report data=example nowd
	style(header)=[bordertopwidth=0.5pt bordertopcolor=black]
;
  column name num;

  define name / order order=internal format=$4.;

  break after name / page;
  compute before _page_ / style=header{just=l};
	line name $4.;
  endcomp;
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Dec 2022 23:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Equivalent-of-byval-in-PROC-REPORT-PRINT/m-p/847687#M26097</guid>
      <dc:creator>BigPete</dc:creator>
      <dc:date>2022-12-04T23:41:41Z</dc:date>
    </item>
  </channel>
</rss>

