<?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 print the result on a new page? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745542#M29380</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/253026"&gt;@cosmid&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Sorry, when I said print, I meant by printing to the output window. When I run the code in SAS studio, with HTML there's a line break for each result, and with listing as the output window, each macro run returns at a new page. But when I do this in UNIX, each macro result just print right below the previous one, there isn't even a line break. So I was wondering if there's an option that I can add to separate each results either with a line break or make sure the new result starts off on a new page.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;HTML doesn't really have a concept for "page" so sending such to HTML is pretty problematic.&lt;/P&gt;
&lt;P&gt;If you mean the traditional OUTPUT window enabled with ODS LISTING then again, how the output is generated does come into play. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am afraid a list of macro names without any details of the actual macro code involved isn't very helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One caution: if you are setting options in SAS studio and then running on a different system then UNIX may use them differently.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jun 2021 16:46:33 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-06-03T16:46:33Z</dc:date>
    <item>
      <title>How to print the result on a new page?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745319#M29350</link>
      <description>&lt;DIV&gt;&lt;DIV class="resolved"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="resolved"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;When you run macros multiple times, how do you make it so that each successful run will print on a new page instead of concatenating the next result to the previous one without a line break?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;macro(a);&lt;/P&gt;&lt;P&gt;macro(b);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result will be something like:&lt;/P&gt;&lt;P&gt;Page 1:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Successful run a&lt;/P&gt;&lt;P&gt;&amp;nbsp;blah blah blah blah&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Successful run b&lt;/P&gt;&lt;P&gt;more blah blah blah&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*bunch of blank lines here*&lt;/P&gt;&lt;P&gt;&amp;nbsp;Page 2:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to make it so that the result from b will start on page 2 or if it is not possible is there a way to add blank lines in between the results? The example has two macros but needs this for a lot more macros.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Jun 2021 20:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745319#M29350</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2021-06-02T20:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the result on a new page?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745351#M29354</link>
      <description>&lt;P&gt;Are you generating a document or printing directly to a printer?&lt;/P&gt;
&lt;P&gt;If a document then what type? Options used?.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Macro or not the approaches are generally the same. But where/how you are "printing" is need to know. And the syntax varies a bit depending on the actual destination.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 22:31:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745351#M29354</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-02T22:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the result on a new page?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745529#M29376</link>
      <description>Sorry, when I said print, I meant by printing to the output window. When I run the code in SAS studio, with HTML there's a line break for each result, and with listing as the output window, each macro run returns at a new page. But when I do this in UNIX, each macro result just print right below the previous one, there isn't even a line break. So I was wondering if there's an option that I can add to separate each results either with a line break or make sure the new result starts off on a new page.</description>
      <pubDate>Thu, 03 Jun 2021 16:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745529#M29376</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2021-06-03T16:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the result on a new page?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745533#M29377</link>
      <description>I am using a temporary solution, something like as follows:&lt;BR /&gt;&lt;BR /&gt;%print_something(a);&lt;BR /&gt;%print_line_break();&lt;BR /&gt;%print_something(b);&lt;BR /&gt;%print_line_break();&lt;BR /&gt;%print_something(c);&lt;BR /&gt;%print_line_break();&lt;BR /&gt;&lt;BR /&gt;Where the print_line_break() is just a proc print statement I put inside to print out a constant text like ---------- to separate out the result. It works, but not pretty. I was hoping there's a way to separate them to different pages or a more standard way, like with an option, that adds a line break.</description>
      <pubDate>Thu, 03 Jun 2021 16:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745533#M29377</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2021-06-03T16:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the result on a new page?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745542#M29380</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/253026"&gt;@cosmid&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Sorry, when I said print, I meant by printing to the output window. When I run the code in SAS studio, with HTML there's a line break for each result, and with listing as the output window, each macro run returns at a new page. But when I do this in UNIX, each macro result just print right below the previous one, there isn't even a line break. So I was wondering if there's an option that I can add to separate each results either with a line break or make sure the new result starts off on a new page.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;HTML doesn't really have a concept for "page" so sending such to HTML is pretty problematic.&lt;/P&gt;
&lt;P&gt;If you mean the traditional OUTPUT window enabled with ODS LISTING then again, how the output is generated does come into play. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am afraid a list of macro names without any details of the actual macro code involved isn't very helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One caution: if you are setting options in SAS studio and then running on a different system then UNIX may use them differently.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 16:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745542#M29380</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-06-03T16:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to print the result on a new page?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745569#M29381</link>
      <description>Sorry, I didn't provide any code. I was referring to results in general. I'm looking for proc prints used in a macro to be more specific. Here's a sample code, and I wanted each macro to print on a new page.&lt;BR /&gt;&lt;BR /&gt;data sample;&lt;BR /&gt;input x;&lt;BR /&gt;datalines;&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;%macro print_it();&lt;BR /&gt;proc print data=sample;&lt;BR /&gt;run;&lt;BR /&gt;$mend;&lt;BR /&gt;&lt;BR /&gt;%print_it(); /*first run*/&lt;BR /&gt;%print_it(); /*2nd run, but I wanted this to be on page 2*/&lt;BR /&gt;%print_it(); /*3rd run, and this should be on page 3*/&lt;BR /&gt;&lt;BR /&gt;It's a small data, but if the result generated takes more than one page, then the next macro result should be on the next page of the previous macro's result.</description>
      <pubDate>Thu, 03 Jun 2021 18:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-print-the-result-on-a-new-page/m-p/745569#M29381</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2021-06-03T18:11:53Z</dc:date>
    </item>
  </channel>
</rss>

