<?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: How to know ODS pdf is on a new page in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697224#M24635</link>
    <description>&lt;P&gt;I don't think I'm explaining what I'm looking for correctly or I'm not understanding how hard it is to get this indication.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the SAS system itself have an indicator of when the text for an ods pdf file is going on a new page or is that the calculation that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;mentioned?&lt;/P&gt;&lt;P&gt;In example #1 the information can span multiple pages and that is fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In example #2 a new variable is starting on the new page and that is when I need to know that this scenario is happening.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Example #1
Var1
&amp;nbsp; This is test variable 1

Var2
  This is test variable 2
  
Var3
  This is test variable 3.
  This is test variable 3.
  This is test variable 3.
  This is test variable 3.
  This is test variable 3.
  This is test variable 3.
  
  [NEW PAGE]
  This is test variable 3.
  This is test variable 3.
  This is test variable 3.
  This is test variable 3.
&amp;nbsp; 


Example #2
Var1
&amp;nbsp; This is test variable 1

Var2
  This is test variable 2
  
Var3
  This is test variable 3.
    
  [NEW PAGE]
Var4
&amp;nbsp; This is test variable 4

Var5
  This is test variable 5
&amp;nbsp; 

&lt;/PRE&gt;&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;for your help and pointing out that this may be much bigger of an issue then I initially thought.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Nov 2020 19:08:56 GMT</pubDate>
    <dc:creator>Jerry8989</dc:creator>
    <dc:date>2020-11-06T19:08:56Z</dc:date>
    <item>
      <title>How to know ODS pdf is on a new page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697153#M24630</link>
      <description>&lt;P&gt;We are trying to conditionally add blank rows so our bookmarks line up.&amp;nbsp; Which after doing that they do, but on new pages we have 2 blank rows.&amp;nbsp; We were hoping to find a way to know if it's a new page and not put the 2 blank rows.&amp;nbsp; In the example below we would put this check after the obj.body_start().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example of our code:&lt;/P&gt;&lt;PRE&gt;  obj.table_start(Label:Templabel, overrides: 'frame=void rules=none cellpadding=0in cellspacing=.06in ') ;
      obj.body_start() ;
        obj.row_start() ;
          obj.format_cell(text: " ", column_span: 2,  overrides: "backgroundcolor=white just=left fontweight=bold font_face='Courier New' font_size=9pt ") ;                
        obj.row_end() ;       
        obj.row_start() ;
          obj.format_cell(text: " ", column_span: 2,  overrides: "backgroundcolor=white just=left fontweight=bold font_face='Courier New' font_size=9pt ") ;                
        obj.row_end() ; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 14:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697153#M24630</guid>
      <dc:creator>Jerry8989</dc:creator>
      <dc:date>2020-11-06T14:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to know ODS pdf is on a new page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697159#M24631</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt;Without seeing more of the code and having some test data, it is nearly impossible to make any constructive suggestions. I am having a hard time visualizing how the bookmarks on the side will line up with the table inside the document, especially when scrolling through the pages on a multi-page document. If you can't post data and code here in the Forum, then you may want to open a track with Tech Support for help.&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 15:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697159#M24631</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-11-06T15:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to know ODS pdf is on a new page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697180#M24632</link>
      <description>Hi Cynthia,&lt;BR /&gt;&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;What I really want to know is if there is an indicator to check within my code if it is a new page.&lt;BR /&gt;&lt;BR /&gt;That code was an example of how the ods table is created. I was hoping to add an if statement before the 2 blank rows to add them or not based on if the page is new.&lt;BR /&gt;&lt;BR /&gt;I have opened a ticket in the past for an issue with how the bookmark doesn't line up correctly and I was told that it was an issue, but no work around so I'm trying to do it a different way.</description>
      <pubDate>Fri, 06 Nov 2020 16:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697180#M24632</guid>
      <dc:creator>Jerry8989</dc:creator>
      <dc:date>2020-11-06T16:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to know ODS pdf is on a new page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697185#M24633</link>
      <description>Hi:&lt;BR /&gt;  I still think that Tech Support is your best bet. I just can't visualize how anything is going to line up in the bookmark area as you describe.&lt;BR /&gt;Cynthia</description>
      <pubDate>Fri, 06 Nov 2020 16:20:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697185#M24633</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-11-06T16:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to know ODS pdf is on a new page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697200#M24634</link>
      <description>&lt;P&gt;What is your papersize setting when the file is created? What is the maximum font size in each line of the table? How much guard space is around the text values output? How much space is used by header/footer on the "page" if any? Any Title or Footnote statments and their font size; current style Parskip option size.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Those are just some of the questions you would have to be able to answer to begin to calculate how much of a "page" is used. Tables that break across pages may also behave a bit differently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many many years ago, 1980's vintage, I worked for an organization that used SAS to write printer markup text for a specific printer for our major annual report document. Every year we had to proof-read everything for just the tables to align properly. If we had a new value that hadn't appeared before we had to recalculate cell boundaries because one value used 0.05in more text than last year. What you are doing is akin to that level of detail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I were assigned this task by a manager I would ask him how much money in terms of man-hours he was willing to fund to do something that may not add much to the document usability. The project I had worked with was moderately mature and had gone through 6 or 7 iterations so we did not have to modify a lot of stuff. But one cell with one name in it cost us about 10 man-hours to address all the related issues.&lt;/P&gt;
&lt;P&gt;If had not had the people that wrote the original code the man-hour cost could well have gone up an order of magnitude just figuring out where the changes needed to be made. Maintenance of such a low-level approach needs to be considered.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 16:55:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697200#M24634</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-06T16:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to know ODS pdf is on a new page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697224#M24635</link>
      <description>&lt;P&gt;I don't think I'm explaining what I'm looking for correctly or I'm not understanding how hard it is to get this indication.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does the SAS system itself have an indicator of when the text for an ods pdf file is going on a new page or is that the calculation that &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;mentioned?&lt;/P&gt;&lt;P&gt;In example #1 the information can span multiple pages and that is fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In example #2 a new variable is starting on the new page and that is when I need to know that this scenario is happening.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Example #1
Var1
&amp;nbsp; This is test variable 1

Var2
  This is test variable 2
  
Var3
  This is test variable 3.
  This is test variable 3.
  This is test variable 3.
  This is test variable 3.
  This is test variable 3.
  This is test variable 3.
  
  [NEW PAGE]
  This is test variable 3.
  This is test variable 3.
  This is test variable 3.
  This is test variable 3.
&amp;nbsp; 


Example #2
Var1
&amp;nbsp; This is test variable 1

Var2
  This is test variable 2
  
Var3
  This is test variable 3.
    
  [NEW PAGE]
Var4
&amp;nbsp; This is test variable 4

Var5
  This is test variable 5
&amp;nbsp; 

&lt;/PRE&gt;&lt;P&gt;Thank you &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;for your help and pointing out that this may be much bigger of an issue then I initially thought.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 19:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697224#M24635</guid>
      <dc:creator>Jerry8989</dc:creator>
      <dc:date>2020-11-06T19:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to know ODS pdf is on a new page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697252#M24636</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Here's the challenge with both the scenarios you show. The [NEW PAGE] indicator that you show is impacted by margins, fonts, title and footnote. So if you created the report at 6pt, the [NEW PAGE] would happen at a different location in one run than it would happen in a subsequent run if you changed the font size for the report to 20pt. In the "old days" of writing output with DATA _NULL_ and PUT statement, you could toggle a "LINESLEFT" variable on, but that was based on PAGESIZE and the assumption of a fixed pitch monospace font (as shown here: &lt;A href="https://support.sas.com/kb/24/700.html" target="_blank"&gt;https://support.sas.com/kb/24/700.html&lt;/A&gt; ). So LINESLEFT won't help you with what you want because the concept of "lines" on a page doesn't apply to proportionally spaced fonts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; But, that was long before the new Report Writing Interface days and the object and method syntax for generating custom tables. According to the tip sheet: &lt;A href="https://support.sas.com/rnd/base/ods/Tipsheet_RWI.pdf" target="_blank"&gt;https://support.sas.com/rnd/base/ods/Tipsheet_RWI.pdf&lt;/A&gt; there is &lt;STRONG&gt;&lt;EM&gt;obj&lt;/EM&gt;.page&lt;/STRONG&gt; syntax that allows you to force a page break, but I do not believe there's any kind of automatic variable you can test to determine when the page break is going to occur when/if a table breaks across pages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You might want to check with Tech Support with your full code and some test data. But otherwise, I don't have any ideas.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 06 Nov 2020 21:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697252#M24636</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-11-06T21:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to know ODS pdf is on a new page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697620#M24637</link>
      <description>&lt;P&gt;Thank you Cynthia,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is what I didn't understand and now I do.&amp;nbsp; I'm going to reach out to tech support and see if they can help me figure it out with the process I'm using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 14:12:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-know-ODS-pdf-is-on-a-new-page/m-p/697620#M24637</guid>
      <dc:creator>Jerry8989</dc:creator>
      <dc:date>2020-11-09T14:12:10Z</dc:date>
    </item>
  </channel>
</rss>

