<?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 - layout and titles in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-layout-and-titles/m-p/707900#M26549</link>
    <description>Hi:&lt;BR /&gt;  If you look at the code example in my picture, I have a null TITLE statement:&lt;BR /&gt;TITLE;&lt;BR /&gt;which "blanks out" all of the current titles. If you want to change the title between reports or when the next report starts, you'd just need to use a title statement immediately before the steps where you want a title. My example showed how to get a title on page 1, but then no title on page 2 and subsequent pages by using 2 PROC REPORT steps: 1 step for the first page, with a title and 1 step for the rest of the report using FIRSTOBS= and OBS= to control where the second page started. If you will be having another report after this, then just use a new TITLE statement before THAT report step.&lt;BR /&gt;Cynthia</description>
    <pubDate>Wed, 23 Dec 2020 15:26:05 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2020-12-23T15:26:05Z</dc:date>
    <item>
      <title>PROC REPORT - layout and titles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-layout-and-titles/m-p/707623#M26524</link>
      <description>&lt;P&gt;Hi. I have this code for a proc report:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf notoc file="F:\TEST.pdf" ;
options orientation=landscape;

TITLE1 j=l color=STEEL bold 'XXXXX' ;
TITLE2 j=l color=black bold  'XXXXX';
options mprint;
proc format;
    /*value pctf .='N/A' waittime percentn10.  low-&amp;lt;0.1= 0.1-high=waittime format=percentn10.*/;
    value colorf .=white low-&amp;lt;0.1=Firebrick 0.1-high=lightblue;
run;

%macro many_col;
    proc sql noprint;
        select count(distinct dato) into :ncols from pdf1;
    quit;
    %put &amp;amp;=ncols;
	proc report data=pdf1 style(header) = {background = lightgray color = black};
	    columns region place metode dato,waittime ;
	    define Region/group style(header) = {background = lightgray color = black font_weight=bold font_face=calibri } style(column) = {background = lightgray color = black font_weight=bold font_face=calibri Cellwidth=70};
	    define place /group style(header) = {background = lightgray color = black font_weight=bold font_face=calibri} style(column) = {background = lightgray color = black font_face=calibri };
		define metode/group '' style(header) = {background = lightgray color = black font_weight=bold font_face=calibri} style(column) = {background = lightgray color = black font_face=calibri};
	    define dato/across order=internal format= ddmmyyd10. style(header) = {background = lightgray color = black font_weight=bold font_face=calibri};
	    define waittime /sum format=percentn10./*format=pctf5. */'';
	    compute waittime ;
	          %do i=1 %to &amp;amp;ncols;
	               call define("_c%eval(&amp;amp;i+3)_",'style','style={background=colorf. color=black font_face=calibri font_weight=bold}');
	          %end;
	      endcompute;
		
	run;
%mend;

%many_col

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My report shows titles in all pages, but I only need it on the first page - how can I do so?&lt;/P&gt;&lt;P&gt;Second question: My report comes out very long because a have a set of dates across the table in the output which do not fit in PDF on a single page or two - I tried to correct the cellwidth on the other group variables, but if I change to cellwidth=20, then it will look good in the result window - but come out messy in the PDF.&lt;/P&gt;&lt;P&gt;Is there any tips and tricks to make the final output prettier?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 10:20:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-layout-and-titles/m-p/707623#M26524</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2020-12-22T10:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT - layout and titles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-layout-and-titles/m-p/707658#M26533</link>
      <description>&lt;P&gt;Have you worked with PROC ODSTEXT?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know if you might tweak the font size/style to your liking...&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*TITLE1 j=l color=STEEL bold 'XXXXX' ;*/
/*TITLE2 j=l color=black bold  'XXXXX';*/
proc odstext;
  p 'XXXXX' /style=[color=steel font_weight=bold fontsize=16pt];
  p 'XXXXX' /style=[color=black                  fontsize=14pt];
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Dec 2020 13:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-layout-and-titles/m-p/707658#M26533</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2020-12-22T13:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT - layout and titles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-layout-and-titles/m-p/707708#M26538</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; One way to keep using the SAS TITLE statement and only having titles on the first page is to use OBS= and FIRSTOBS= - -as shown with SASHELP.CARS:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1608655266304.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52962iC812CA620490016B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1608655266304.png" alt="Cynthia_sas_0-1608655266304.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This paper talks about how to make wide output fit in the PDF destination. You can change font, cellpadding and other attributes to make output fit better: &lt;A href="https://support.sas.com/resources/papers/proceedings14/SAS038-2014.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings14/SAS038-2014.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 16:42:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-layout-and-titles/m-p/707708#M26538</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-12-22T16:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT - layout and titles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-layout-and-titles/m-p/707853#M26547</link>
      <description>&lt;P&gt;Hi is it possible to get titles on the first page only and on another specific page also?&lt;/P&gt;&lt;P&gt;so the title should appear two times in the report?&lt;/P&gt;&lt;P&gt;I have 2 different proc reports that I outout in 1 PDF, and on the first page I want a title as you showed - it worked, but then I want a title when the second report starts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is that possible&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;</description>
      <pubDate>Wed, 23 Dec 2020 10:17:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-layout-and-titles/m-p/707853#M26547</guid>
      <dc:creator>mmea</dc:creator>
      <dc:date>2020-12-23T10:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC REPORT - layout and titles</title>
      <link>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-layout-and-titles/m-p/707900#M26549</link>
      <description>Hi:&lt;BR /&gt;  If you look at the code example in my picture, I have a null TITLE statement:&lt;BR /&gt;TITLE;&lt;BR /&gt;which "blanks out" all of the current titles. If you want to change the title between reports or when the next report starts, you'd just need to use a title statement immediately before the steps where you want a title. My example showed how to get a title on page 1, but then no title on page 2 and subsequent pages by using 2 PROC REPORT steps: 1 step for the first page, with a title and 1 step for the rest of the report using FIRSTOBS= and OBS= to control where the second page started. If you will be having another report after this, then just use a new TITLE statement before THAT report step.&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 23 Dec 2020 15:26:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/PROC-REPORT-layout-and-titles/m-p/707900#M26549</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-12-23T15:26:05Z</dc:date>
    </item>
  </channel>
</rss>

