<?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 Generate report in two pages in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Generate-report-in-two-pages/m-p/66504#M1578</link>
    <description>How can I report the below data state wise (AP KA TN) in two pages in stead of three; AP and KA data should be in one page and TN data in another page.&lt;BR /&gt;
 plz check. I have written the program like that.(displaying in three separate pages)&lt;BR /&gt;
data prod_sales;&lt;BR /&gt;
input state $ pcode $ area $ month stock sale;&lt;BR /&gt;
cards;&lt;BR /&gt;
AP N79 HYD 1 40 20&lt;BR /&gt;
TN N79 CHN 1 30 10&lt;BR /&gt;
KA N79 BAN 1 45 20&lt;BR /&gt;
AP N79 HYD 2 30 15&lt;BR /&gt;
TN N79 CHN 2 10 10&lt;BR /&gt;
KA N79 BAN 2 45 30&lt;BR /&gt;
TN N79 CHN 3 20 10&lt;BR /&gt;
KA N79 BAN 3 25 20&lt;BR /&gt;
AP N79 HYD 3 20 15&lt;BR /&gt;
;&lt;BR /&gt;
proc report data=prod_sales nowd headline;&lt;BR /&gt;
define state/order;&lt;BR /&gt;
define area/order;&lt;BR /&gt;
define pcode/order;&lt;BR /&gt;
break after state/page;&lt;BR /&gt;
compute after state;&lt;BR /&gt;
line 65*'-';&lt;BR /&gt;
line 'End of the report';&lt;BR /&gt;
endcomp;&lt;BR /&gt;
compute before _page_;&lt;BR /&gt;
line 'This report belongs to: ' state $6.;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
run;</description>
    <pubDate>Fri, 28 Jan 2011 01:54:57 GMT</pubDate>
    <dc:creator>dash</dc:creator>
    <dc:date>2011-01-28T01:54:57Z</dc:date>
    <item>
      <title>Generate report in two pages</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Generate-report-in-two-pages/m-p/66504#M1578</link>
      <description>How can I report the below data state wise (AP KA TN) in two pages in stead of three; AP and KA data should be in one page and TN data in another page.&lt;BR /&gt;
 plz check. I have written the program like that.(displaying in three separate pages)&lt;BR /&gt;
data prod_sales;&lt;BR /&gt;
input state $ pcode $ area $ month stock sale;&lt;BR /&gt;
cards;&lt;BR /&gt;
AP N79 HYD 1 40 20&lt;BR /&gt;
TN N79 CHN 1 30 10&lt;BR /&gt;
KA N79 BAN 1 45 20&lt;BR /&gt;
AP N79 HYD 2 30 15&lt;BR /&gt;
TN N79 CHN 2 10 10&lt;BR /&gt;
KA N79 BAN 2 45 30&lt;BR /&gt;
TN N79 CHN 3 20 10&lt;BR /&gt;
KA N79 BAN 3 25 20&lt;BR /&gt;
AP N79 HYD 3 20 15&lt;BR /&gt;
;&lt;BR /&gt;
proc report data=prod_sales nowd headline;&lt;BR /&gt;
define state/order;&lt;BR /&gt;
define area/order;&lt;BR /&gt;
define pcode/order;&lt;BR /&gt;
break after state/page;&lt;BR /&gt;
compute after state;&lt;BR /&gt;
line 65*'-';&lt;BR /&gt;
line 'End of the report';&lt;BR /&gt;
endcomp;&lt;BR /&gt;
compute before _page_;&lt;BR /&gt;
line 'This report belongs to: ' state $6.;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
run;</description>
      <pubDate>Fri, 28 Jan 2011 01:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Generate-report-in-two-pages/m-p/66504#M1578</guid>
      <dc:creator>dash</dc:creator>
      <dc:date>2011-01-28T01:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Generate report in two pages</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Generate-report-in-two-pages/m-p/66505#M1579</link>
      <description>Try this...&lt;BR /&gt;
&lt;BR /&gt;
data prod_sales;&lt;BR /&gt;
	set prod_sales;&lt;BR /&gt;
	if state in ('AP','KA') then mypage=1;&lt;BR /&gt;
	else mypage=2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc report data=prod_sales nowd headline;&lt;BR /&gt;
column mypage state pcode area month stock sale;&lt;BR /&gt;
define mypage/order order=intenal noprint;&lt;BR /&gt;
define state/order;&lt;BR /&gt;
define area/order;&lt;BR /&gt;
define pcode/order;&lt;BR /&gt;
break after mypage/page;&lt;BR /&gt;
compute after mypage;&lt;BR /&gt;
line 65*'-';&lt;BR /&gt;
line 'End of the report';&lt;BR /&gt;
endcomp;&lt;BR /&gt;
compute before _page_;&lt;BR /&gt;
line 'This report belongs to: ' state $6.;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 02 Feb 2011 14:10:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Generate-report-in-two-pages/m-p/66505#M1579</guid>
      <dc:creator>NickR</dc:creator>
      <dc:date>2011-02-02T14:10:23Z</dc:date>
    </item>
  </channel>
</rss>

