<?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 run a single report instead two in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-run-a-single-report-instead-two/m-p/55292#M11773</link>
    <description>Hi:&lt;BR /&gt;
  Just wondering whether this is a new set of reports or whether this is related to your previous posting?&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=20499倓" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=20499倓&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 16 Jul 2009 21:20:30 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-07-16T21:20:30Z</dc:date>
    <item>
      <title>How to run a single report instead two</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-run-a-single-report-instead-two/m-p/55291#M11772</link>
      <description>How to generate a single report instead two?&lt;BR /&gt;
/** grouping  yearly****/&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
 create table rpt3a as&lt;BR /&gt;
  select distinct terrid,region,bsm, md_zip,PHYS_ADDRESS1,PHYSICIAN_ADDRESS2,pat_seq_id1,phys_city,md_state,physician_name, sum(total_scripts) as T_yr, year, productgroup&lt;BR /&gt;
   from prescriberdata_v2&lt;BR /&gt;
   group by terrid,region, md_zip, bsm,PHYS_ADDRESS1,PHYSICIAN_ADDRESS2,physician_name ,pat_seq_id1, year, productgroup,md_zip,phys_city,md_state;&lt;BR /&gt;
   quit;&lt;BR /&gt;
Generate report at year level:&lt;BR /&gt;
&lt;BR /&gt;
proc report data=rpt3a nowd NOWINDOWS HEADLINE MISSING;&lt;BR /&gt;
COLUMN terrid region bsm md_zip  physician_name PHYS_ADDRESS1 PHYSICIAN_ADDRESS2 phys_city md_state pat_seq_id1 t_yr,year, productgroup ;&lt;BR /&gt;
---SAS code follows---&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
/** grouping at year_month****/&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
 create table rpt3b as&lt;BR /&gt;
  select distinct terrid,region,bsm, md_zip,PHYS_ADDRESS1,PHYSICIAN_ADDRESS2,pat_seq_id1,phys_city,md_state,physician_name, sum(total_scripts) as T_yr_m, year_month, productgroup&lt;BR /&gt;
   from prescriberdata_v2&lt;BR /&gt;
   group by terrid,region, md_zip, bsm,PHYS_ADDRESS1,PHYSICIAN_ADDRESS2,physician_name ,pat_seq_id1, year_month, productgroup,md_zip,phys_city,md_state;;&lt;BR /&gt;
   quit;&lt;BR /&gt;
&lt;BR /&gt;
Generate report at year_month level:&lt;BR /&gt;
proc report data=rpt3b nowd NOWINDOWS HEADLINE MISSING;&lt;BR /&gt;
	COLUMN terrid region bsm md_zip  physician_name PHYS_ADDRESS1 PHYSICIAN_ADDRESS2 phys_city md_state pat_seq_id1 t_yr_m,year_month, productgroup;&lt;BR /&gt;
---SAS code Follows---&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The final report I copy the second report and paste it in the first report.&lt;BR /&gt;
I'm wondering if there is a way to do in a single report.&lt;BR /&gt;
This will save time and manual errors.</description>
      <pubDate>Thu, 16 Jul 2009 19:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-run-a-single-report-instead-two/m-p/55291#M11772</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2009-07-16T19:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a single report instead two</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-run-a-single-report-instead-two/m-p/55292#M11773</link>
      <description>Hi:&lt;BR /&gt;
  Just wondering whether this is a new set of reports or whether this is related to your previous posting?&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=20499倓" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=20499倓&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 16 Jul 2009 21:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-run-a-single-report-instead-two/m-p/55292#M11773</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-07-16T21:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a single report instead two</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-run-a-single-report-instead-two/m-p/55293#M11774</link>
      <description>You have explained nothing about how and where you wish to generate the output reports - PDF, web, etc. -- please share more info (ideally your SAS code) which renders some output, if no more than to explain what / where you would like the output to be delivered?&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 17 Jul 2009 02:38:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-run-a-single-report-instead-two/m-p/55293#M11774</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-07-17T02:38:25Z</dc:date>
    </item>
  </channel>
</rss>

