<?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 Pagenumber , Title,Date on same line in proc report pdf in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/932890#M366951</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can some one help me to dsiplay report like below .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for Page Number , Title and datestamp on same line (left,center,right)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmkr_0-1718735921648.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97601iAC5FAAA2F8B27579/image-size/large?v=v2&amp;amp;px=999" role="button" title="mmkr_0-1718735921648.png" alt="mmkr_0-1718735921648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 18:39:48 GMT</pubDate>
    <dc:creator>mmkr</dc:creator>
    <dc:date>2024-06-18T18:39:48Z</dc:date>
    <item>
      <title>Pagenumber , Title,Date on same line in proc report pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/932890#M366951</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can some one help me to dsiplay report like below .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am looking for Page Number , Title and datestamp on same line (left,center,right)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmkr_0-1718735921648.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97601iAC5FAAA2F8B27579/image-size/large?v=v2&amp;amp;px=999" role="button" title="mmkr_0-1718735921648.png" alt="mmkr_0-1718735921648.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 18:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/932890#M366951</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2024-06-18T18:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pagenumber , Title,Date on same line in proc report pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/932896#M366953</link>
      <description>&lt;P&gt;We can use just title statement with justification = left/center/right option followed by desired text string.&lt;BR /&gt;eg;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nodate nonumber;
ods escapechar='~';
ods pdf file='test.pdf';
	title1 j=l 'Page No:~{thispage}' j=c 'Title line 1: Country' j=right "Datestamp:%sysfunc(today(), mmddyy10.)";
	title2 j=l 'Report Name: Report 1' j=c 'Title line 2: State';
	title3 j=c 'Title line 3: Country';
	proc report data=sashelp.cars;
		where type= 'SUV' and msrp gt 50000;
		column origin make model msrp;
	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="Capture.PNG" style="width: 972px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97602iFA2383B336FB24A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;BR /&gt;ODS ESCAPECHAR function {THISPAGE}&amp;nbsp; to insert page number and macro function %sysfunc (today()) to insert date in the same title line.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 19:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/932896#M366953</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2024-06-18T19:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Pagenumber , Title,Date on same line in proc report pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/932898#M366954</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This should get you started. If you want the information about Country, State and County to change, then you'll need to investigate using #byval in your TITLE statements, but this shows how to get basic strings into your TITLEs justified as you showed:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1718738773312.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/97603iDA55EBEBF1A0042F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1718738773312.png" alt="Cynthia_sas_0-1718738773312.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 19:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/932898#M366954</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2024-06-18T19:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pagenumber , Title,Date on same line in proc report pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/933080#M367012</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp; , one more request how do i put it in one line if Title is little big ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example : Title Name : This is the Report of weekly learning and implement&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Page No : 1&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;This is the Report of weekly learning and&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Datestamp : 10/12/2024&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; implement&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Implement" word is going in to second line but i need it one line&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a space avaiable in between rigth and left of the center justify&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 04:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/933080#M367012</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2024-06-20T04:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pagenumber , Title,Date on same line in proc report pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/933226#M367047</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This Tech Support note suggests reducing the font size of moving to multiple title statements: &lt;A href="https://support.sas.com/kb/24/492.html" target="_blank"&gt;https://support.sas.com/kb/24/492.html&lt;/A&gt; and that is the only thing I can think of to suggest. You might want to work with SAS Tech Support on this question to see whether they have any other suggestions.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 21:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/933226#M367047</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2024-06-20T21:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pagenumber , Title,Date on same line in proc report pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/933232#M367048</link>
      <description>&lt;P&gt;Sometimes you have to decide which is more important.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could set the page orientation to landscape to make a wider than tall document.&lt;/P&gt;
&lt;P&gt;options orientation=landscape;&lt;/P&gt;
&lt;P&gt;prior to the ODS PDF destination would work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One other alternate approach which may not "work" if you want to print the document on paper is to define a different paper size to make a page wider if your desired font size will not fit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SAS system option PAPERSIZE set before creating a document will do such.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options papersize=(10in, 10in);&lt;/P&gt;
&lt;P&gt;would use a logical page that is 10 inches by 10 inches. Or what size may work. As I said above, this may result in a document that is not paper friendly, either not fitting or looking out of place depending on the particular papersize and text displayed.&lt;/P&gt;
&lt;P&gt;Don't forget to set back to your default, likely LETTER or A4 depending on local afterwards.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 22:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/933232#M367048</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-06-20T22:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pagenumber , Title,Date on same line in proc report pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/933344#M367074</link>
      <description>&lt;P&gt;Thank you one more question !!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Page no i can display on left side :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Title1 j=l "Report Page No:~{thispage}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do i display on right side with by variable page no ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For exmple if i have total 50 pages , in proc report i have by variable called ID and contents of page is coming ID's which is unique by 4 Id's&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to reset page no's when ever ID chnages&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so iam looking for code something like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Title1 j=l "Total Report Page No:~{thispage}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;j=r "By Variable Page No:~{thispage}"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 15:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/933344#M367074</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2024-06-21T15:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pagenumber , Title,Date on same line in proc report pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/933352#M367078</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44256"&gt;@mmkr&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you one more question !!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Page no i can display on left side :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Title1 j=l "Report Page No:~{thispage}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do i display on right side with by variable page no ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For exmple if i have total 50 pages , in proc report i have by variable called ID and contents of page is coming ID's which is unique by 4 Id's&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to reset page no's when ever ID chnages&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so iam looking for code something like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Title1 j=l "Total Report Page No:~{thispage}"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;j=r "By Variable Page No:~{thispage}"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;MAY be possible if the Report is using a BY statement. Then you can use the #BYVAR and/ or #BYval special values in a title.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 16:53:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pagenumber-Title-Date-on-same-line-in-proc-report-pdf/m-p/933352#M367078</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-06-21T16:53:37Z</dc:date>
    </item>
  </channel>
</rss>

