<?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 Print ODS By Line in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789467#M25551</link>
    <description>&lt;P&gt;This is exactly what I needed, thank you very much.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jan 2022 13:53:36 GMT</pubDate>
    <dc:creator>mattmm</dc:creator>
    <dc:date>2022-01-11T13:53:36Z</dc:date>
    <item>
      <title>Proc Print ODS By Line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789341#M25540</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to add style elements to the by line of my PDF file output. As of now it is putting the variable, an '=' sign, and the output. I want to control the style (font, label name, etc.) as well as the output (remove the '='). I have tried several ways and read the SAS documentation on &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p19yo2oj9l1m58n1utb71ps1vf1b.htm" target="_self"&gt;ODS Style and Proc Print&lt;/A&gt;, but I'm unable to come across a solution. Is this possible or should I try another route to achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've messed around with using a title statement as a placeholder of var2, but the by line separates the output by the second variable (var2), and nest a table under that unique variable so it gets messy trying to make that work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;PRE&gt;ods pdf close;&lt;BR /&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;CODE class=""&gt;options orientation=landscape nodate number nocenter papersize=legal;
ods pdf file="&amp;amp;path&amp;amp;name .pdf" style=my_style;
title1 justify=left font=arial 'Left Title' justify=right "Right Title";

Proc print data=have rows=page split='*' style(header obs obsheader)={just=center font_face=arial fontsize=2.2} obs="Item";
	by var1 var2; &lt;FONT color="#339966"&gt;/*this is what I want to control the style of*/&lt;/FONT&gt;
	Var var3 var4/style(data)=[background=white just=center font_face=arial fontsize=2];
	format var3 var4 best7.2;
	label var3= 'The Third Variable' var4= 'The Fourth Variable';
run;

ods pdf close;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV class=""&gt;Sample Output:&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mock_output.jpg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67266i3650B97CFD92F449/image-size/large?v=v2&amp;amp;px=999" role="button" title="mock_output.jpg" alt="mock_output.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 20:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789341#M25540</guid>
      <dc:creator>mattmm</dc:creator>
      <dc:date>2022-01-10T20:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print ODS By Line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789363#M25541</link>
      <description>I don't think STYLE will allow to change the structure of the BY line, specifically the Equals sign. At least not without messing around with templates. &lt;BR /&gt;I would probably recommend using a custom title statement instead and using #BYVAL/#BYVAR options instead. &lt;BR /&gt;&lt;BR /&gt;Note the usage of multiple TITLE statements in this example:&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi23/Coders/p75.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings/proceedings/sugi23/Coders/p75.pdf&lt;/A&gt;</description>
      <pubDate>Mon, 10 Jan 2022 21:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789363#M25541</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-10T21:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print ODS By Line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789364#M25542</link>
      <description>&lt;P&gt;FYI - I've moved this post to the ODS Reporting section so hopefully you get a better response here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 21:04:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789364#M25542</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-10T21:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print ODS By Line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789444#M25549</link>
      <description>&lt;P&gt;Follow as Reeza said.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have(index=(x=(sex age)));
 set sashelp.class;
 if age in ( 12 14 15);
run;


options nobyline;
ods pdf file="c:\temp\temp.pdf" style=meadow;
title1 justify=left font=arial 'Left Title' justify=right "Right Title";
title2 j=left color=red bcolor=green "#byvar1 = #byval1 || #byvar2 = #byval2";

Proc print data=have rows=page split='*' style(header obs obsheader)={just=center font_face=arial fontsize=2.2} obs="Item";
 by sex age; /*this is what I want to control the style of*/
 Var weight height/style(data)=[background=white just=center font_face=arial fontsize=2];
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1641901511003.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67286iA4922EEAF3576B5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1641901511003.png" alt="Ksharp_0-1641901511003.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 11:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789444#M25549</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-11T11:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print ODS By Line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789467#M25551</link>
      <description>&lt;P&gt;This is exactly what I needed, thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 13:53:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789467#M25551</guid>
      <dc:creator>mattmm</dc:creator>
      <dc:date>2022-01-11T13:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print ODS By Line</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789468#M25552</link>
      <description>&lt;P&gt;I followed what Reeza said and that is the solution. Great to see it here in practice as the visual showed me what to apply. Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 13:54:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-ODS-By-Line/m-p/789468#M25552</guid>
      <dc:creator>mattmm</dc:creator>
      <dc:date>2022-01-11T13:54:24Z</dc:date>
    </item>
  </channel>
</rss>

