<?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: Create a text box at the top of output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977285#M378462</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/442038"&gt;@PamG&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way to put it in a box with centering of the text?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Centering is easy (add the &lt;FONT face="courier new,courier"&gt;justify=center&lt;/FONT&gt; option to the title statements). For a kind of box you could add the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p10gcmrmf83iaxn1ilrx4pra969n.htm#n0kc4hyhp9dcj9n197ot0p0am06m" target="_blank" rel="noopener"&gt;BCOLOR= option&lt;/A&gt;, e.g., &lt;FONT face="courier new,courier"&gt;bcolor=lightgray&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a real box, however, you might need to resort to more complex tools such as &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p06ji2uhvayhq5n1eik2z2rf2ga8.htm" target="_blank" rel="noopener"&gt;ODS LAYOUT GRIDDED&lt;/A&gt; and &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/graphref/p0kr9k2lndrguyn1m3hiyvzu9q5k.htm" target="_blank" rel="noopener"&gt;PROC GSLIDE&lt;/A&gt;, as shown below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods layout gridded;
options center;
goptions hsize=200pt vsize=90pt;

proc gslide frame;
note h=12pt;
note h=18pt j=c "Data: aaa";
note h=18pt j=c "Years of study: xxx";
note h=18pt j=c "Outcomes: BBB";
run;
quit;

proc print data=sashelp.class;
run;

ods layout end;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="boxed_title.png" style="width: 414px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/110723i6159BB8E4257B60A/image-size/large?v=v2&amp;amp;px=999" role="button" title="boxed_title.png" alt="boxed_title.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Oct 2025 18:41:37 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2025-10-17T18:41:37Z</dc:date>
    <item>
      <title>Create a text box at the top of output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977268#M378457</link>
      <description>&lt;P&gt;Is there a way to put a text box at the beginning of the analysis in the output window in SAS EG (report or html&amp;nbsp; windows)?&amp;nbsp; I do not want to save the results to an html or pdf file using ODS but I want it to go to the output window, and if needed I would like to save the output myself.&amp;nbsp; I do not want it occupying the entire page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the following code and it works fine but the font is too small.&amp;nbsp; Is there a way to change the font or an easier way to do it that does not require too many lines of code.&amp;nbsp; Sample code attached below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data _null_;
	file print;
	line1="Data : aaa";
	line2="Years of study: xxx";
	line3="Outcomes: BBB";
	put #1 line1 10-35 #2 line2 10-35 #3 line3 10-35;
	file log;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 15:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977268#M378457</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2025-10-17T15:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create a text box at the top of output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977271#M378459</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/442038"&gt;@PamG&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p10gcmrmf83iaxn1ilrx4pra969n.htm" target="_blank" rel="noopener"&gt;TITLE statement&lt;/A&gt; with a &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p10gcmrmf83iaxn1ilrx4pra969n.htm#n0nlwx11bg8vien14hsxvggl978t" target="_blank" rel="noopener"&gt;HEIGHT= option&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title1 height=5 "Data : aaa";
title2 height=4 "Years of study: xxx";
title3 height=3 "Outcomes: BBB";

proc print data=sashelp.class;
run;

title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The values 5, 4, 3 are relative sizes, but you can specify absolute values like 24pt as well.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 15:45:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977271#M378459</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-10-17T15:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a text box at the top of output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977275#M378460</link>
      <description>&lt;P&gt;Is there a way to put it in a box with centering of the text?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 16:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977275#M378460</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2025-10-17T16:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a text box at the top of output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977285#M378462</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/442038"&gt;@PamG&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way to put it in a box with centering of the text?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Centering is easy (add the &lt;FONT face="courier new,courier"&gt;justify=center&lt;/FONT&gt; option to the title statements). For a kind of box you could add the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p10gcmrmf83iaxn1ilrx4pra969n.htm#n0kc4hyhp9dcj9n197ot0p0am06m" target="_blank" rel="noopener"&gt;BCOLOR= option&lt;/A&gt;, e.g., &lt;FONT face="courier new,courier"&gt;bcolor=lightgray&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For a real box, however, you might need to resort to more complex tools such as &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p06ji2uhvayhq5n1eik2z2rf2ga8.htm" target="_blank" rel="noopener"&gt;ODS LAYOUT GRIDDED&lt;/A&gt; and &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/graphref/p0kr9k2lndrguyn1m3hiyvzu9q5k.htm" target="_blank" rel="noopener"&gt;PROC GSLIDE&lt;/A&gt;, as shown below.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods layout gridded;
options center;
goptions hsize=200pt vsize=90pt;

proc gslide frame;
note h=12pt;
note h=18pt j=c "Data: aaa";
note h=18pt j=c "Years of study: xxx";
note h=18pt j=c "Outcomes: BBB";
run;
quit;

proc print data=sashelp.class;
run;

ods layout end;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="boxed_title.png" style="width: 414px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/110723i6159BB8E4257B60A/image-size/large?v=v2&amp;amp;px=999" role="button" title="boxed_title.png" alt="boxed_title.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 18:41:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977285#M378462</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-10-17T18:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: Create a text box at the top of output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977286#M378463</link>
      <description>&lt;P&gt;Perfect!!! This is exactly what I was looking for.&amp;nbsp; Thanks so much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733"&gt;@FreelanceReinh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 18:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977286#M378463</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2025-10-17T18:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create a text box at the top of output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977288#M378464</link>
      <description>&lt;P&gt;If I do a left justification then text touches the box. Is there a way to put a left margin between the text and the box?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods layout gridded;
options center;
goptions hsize=200pt vsize=90pt;

proc gslide frame;
note h=12pt;
note h=18pt j=l "Data: aaa";
note h=18pt j=l "Years of study: xxx";
note h=18pt j=l "Outcomes: BBB";
run;
quit;

proc print data=sashelp.class;
run;

ods layout end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 19:17:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977288#M378464</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2025-10-17T19:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create a text box at the top of output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977295#M378466</link>
      <description>&lt;P&gt;You can add a couple of spaces to each title, but I think there may frame options.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods layout gridded;
options center;
goptions reset=all;
goptions hsize=200pt vsize=90pt;

proc gslide frame;
note h=12pt;
note h=18pt j=l "  Data: aaa";
note h=18pt j=l "  Years of study: xxx";
note h=18pt j=l "  Outcomes: BBB";
run;
quit;

proc print data=sashelp.class;
run;

ods layout end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Oct 2025 21:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977295#M378466</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2025-10-17T21:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create a text box at the top of output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977299#M378467</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/442038"&gt;@PamG&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;If I do a left justification then text touches the box. Is there a way to put a left margin between the text and the box?&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think adding white-space characters to the text, as suggested by &lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410" target="_blank" rel="noopener"&gt;data_null__&lt;/A&gt;, is the easiest (if not the only) option -- similar to the first NOTE statement,&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;note h=12pt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;the purpose of which is to insert space between the text and the top of the box.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 21:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977299#M378467</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-10-17T21:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create a text box at the top of output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977328#M378473</link>
      <description>&lt;P&gt;Another solution is using PROC REPORT to emulate it .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data title;
title="Data: aaa(*ESC*)nYears of study: xxx(*ESC*)nOutcomes: BBB";
run;
quit;


ods html options(page_break='no');
title;
proc report data=title nowd noheader style(column header report)={
bordercolor=black borderwidth=1
frame=box rules=all
};
run;
proc print data=sashelp.class;
run;
&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-1760799637916.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/110729i8BF603A4B62B8E15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1760799637916.png" alt="Ksharp_0-1760799637916.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Oct 2025 15:00:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-a-text-box-at-the-top-of-output/m-p/977328#M378473</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-10-18T15:00:53Z</dc:date>
    </item>
  </channel>
</rss>

