<?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 Page breaks in DATA _NULL_ ODS report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-in-DATA-NULL-ODS-report/m-p/424971#M20101</link>
    <description>&lt;P&gt;This is my first attempt at data _null_ reports with ODS, and I'm just learning how things work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm creating a report to show project information from a questionnaire. One item is project description with can be very long. I'm starting with a dataset with one client per row. I created a tall report dataset with three reporting columns. I'd like to end up with a separate page for each client. So I have a by-group data step. I am not sure what to use for the put statement in the&amp;nbsp;last.client condition. _BLANKPAGE_ seems to not be right for ODS. It inserts a great many blank lines following the value. What is the right way to do this?&amp;nbsp;&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data report ;
   keep client var label text;

   set survey;
   by descending client notsorted;
   length var $10 label $25 text $3000;
   array vars client email campaddr q2_6: q3_2;
   where q9_1=1;  

   do i = 1 to dim(vars);
      var = vname(vars{i});
      label = vlabel(vars{i});
      text = vars{i};
      output;
   end;
run;

*proc print data=one;
run;

data _null_;
   set report;
   by client var notsorted;
   file print ods=(variables=(label text)) ;

   put _ods_;
   if last.client then put _BLANKPAGE_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jan 2018 16:33:49 GMT</pubDate>
    <dc:creator>bob_pearson</dc:creator>
    <dc:date>2018-01-04T16:33:49Z</dc:date>
    <item>
      <title>Page breaks in DATA _NULL_ ODS report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-in-DATA-NULL-ODS-report/m-p/424971#M20101</link>
      <description>&lt;P&gt;This is my first attempt at data _null_ reports with ODS, and I'm just learning how things work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm creating a report to show project information from a questionnaire. One item is project description with can be very long. I'm starting with a dataset with one client per row. I created a tall report dataset with three reporting columns. I'd like to end up with a separate page for each client. So I have a by-group data step. I am not sure what to use for the put statement in the&amp;nbsp;last.client condition. _BLANKPAGE_ seems to not be right for ODS. It inserts a great many blank lines following the value. What is the right way to do this?&amp;nbsp;&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data report ;
   keep client var label text;

   set survey;
   by descending client notsorted;
   length var $10 label $25 text $3000;
   array vars client email campaddr q2_6: q3_2;
   where q9_1=1;  

   do i = 1 to dim(vars);
      var = vname(vars{i});
      label = vlabel(vars{i});
      text = vars{i};
      output;
   end;
run;

*proc print data=one;
run;

data _null_;
   set report;
   by client var notsorted;
   file print ods=(variables=(label text)) ;

   put _ods_;
   if last.client then put _BLANKPAGE_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 16:33:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-in-DATA-NULL-ODS-report/m-p/424971#M20101</guid>
      <dc:creator>bob_pearson</dc:creator>
      <dc:date>2018-01-04T16:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Page breaks in DATA _NULL_ ODS report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-in-DATA-NULL-ODS-report/m-p/424986#M20102</link>
      <description>&lt;P&gt;Errm, why not just get your data, then use ods &amp;lt;destination&amp;gt; and use proc report, then you can simply do page breaks and all the normal formatting methods.&amp;nbsp; Not sure what creating a plain text file from a datastep is going to get you, you certainly won't get most of the formatting.&amp;nbsp; If your exporting the data for transfer, then CSV or XML, for reports RTF or PDF.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 16:54:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-in-DATA-NULL-ODS-report/m-p/424986#M20102</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-04T16:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Page breaks in DATA _NULL_ ODS report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-in-DATA-NULL-ODS-report/m-p/424996#M20103</link>
      <description>&lt;P&gt;As an old co-worker used to say, you touched me right there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That was one of those cases of getting stuck in plan A. My original attempt was to do it all in one data step. Then once I figured out that I should make a report dataset I&amp;nbsp;was stuck in Data _Null_mode. Sorry for a silly one.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2018 17:15:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Page-breaks-in-DATA-NULL-ODS-report/m-p/424996#M20103</guid>
      <dc:creator>bob_pearson</dc:creator>
      <dc:date>2018-01-04T17:15:55Z</dc:date>
    </item>
  </channel>
</rss>

