<?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 Proc Report Multiple tables display output in same page with same by variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930335#M366024</link>
    <description>&lt;P&gt;data test;&lt;BR /&gt;input id fname $4. lname $5. age;&lt;BR /&gt;cards;&lt;BR /&gt;123 abc1 def1 24&lt;BR /&gt;124 abc2 def2 25&lt;BR /&gt;125 abc3 def3 26&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data test2;&lt;BR /&gt;input id state $7. county $9. ;&lt;BR /&gt;cards;&lt;BR /&gt;123 state1 county1&lt;BR /&gt;124 state2 county2&lt;BR /&gt;125 state3 county3&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;options orientation=landscape;&lt;BR /&gt;ods pdf file="location\name.pdf";&lt;BR /&gt;Title1 "Test";&lt;BR /&gt;ods proclabel='';&lt;/P&gt;
&lt;P&gt;proc report data=test contents='' headline nowindows ;by id ;&lt;BR /&gt;columns id fname lname age;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc report data=test2 contents='' headline nowindows ;by id ;&lt;BR /&gt;columns id state county;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods pdf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmkr_0-1717101386544.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96876i859C8F3FDED3B594/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmkr_0-1717101386544.png" alt="mmkr_0-1717101386544.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Iam looking only one table of contnets for both tables on left side ? is there any i can do and get the ouput ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2024 20:37:43 GMT</pubDate>
    <dc:creator>mmkr</dc:creator>
    <dc:date>2024-05-30T20:37:43Z</dc:date>
    <item>
      <title>Proc Report Multiple tables display output in same page with same by variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930335#M366024</link>
      <description>&lt;P&gt;data test;&lt;BR /&gt;input id fname $4. lname $5. age;&lt;BR /&gt;cards;&lt;BR /&gt;123 abc1 def1 24&lt;BR /&gt;124 abc2 def2 25&lt;BR /&gt;125 abc3 def3 26&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;data test2;&lt;BR /&gt;input id state $7. county $9. ;&lt;BR /&gt;cards;&lt;BR /&gt;123 state1 county1&lt;BR /&gt;124 state2 county2&lt;BR /&gt;125 state3 county3&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;options orientation=landscape;&lt;BR /&gt;ods pdf file="location\name.pdf";&lt;BR /&gt;Title1 "Test";&lt;BR /&gt;ods proclabel='';&lt;/P&gt;
&lt;P&gt;proc report data=test contents='' headline nowindows ;by id ;&lt;BR /&gt;columns id fname lname age;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc report data=test2 contents='' headline nowindows ;by id ;&lt;BR /&gt;columns id state county;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods pdf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mmkr_0-1717101386544.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96876i859C8F3FDED3B594/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mmkr_0-1717101386544.png" alt="mmkr_0-1717101386544.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Iam looking only one table of contnets for both tables on left side ? is there any i can do and get the ouput ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 20:37:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930335#M366024</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2024-05-30T20:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Multiple tables display output in same page with same by variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930341#M366028</link>
      <description>&lt;P&gt;I am not quite sure what you want.&lt;/P&gt;
&lt;P&gt;If it is to have all of the report output on the same page then add STARTPAGE=NEVER to your ODS PDF statement. That will suppress any new pages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF you want to have two different reports interleaving output from the first report and the second alternating then you are moving into the macro language and much more complicated code.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 21:00:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930341#M366028</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-05-30T21:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Multiple tables display output in same page with same by variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930346#M366030</link>
      <description>&lt;P&gt;I want to go in to next apge when ever new BY variable comes in&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 21:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930346#M366030</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2024-05-30T21:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Multiple tables display output in same page with same by variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930358#M366039</link>
      <description>&lt;P&gt;You want this ??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input id fname $4. lname $5. age;
cards;
123 abc1 def1 24
124 abc2 def2 25
125 abc3 def3 26
;
run;


data test2;
input id state $7. county $9. ;
cards;
123 state1 county1
124 state2 county2
125 state3 county3
;
run;

 


options orientation=landscape nobyline;
ods pdf file="c:\temp\name.pdf";
Title1 "Test1";
ods proclabel='Test1';

proc report data=test headline nowindows contents='';
columns id fname lname age;
define id/group;
break before id/page contents='';
run;

Title1 "Test2";
ods proclabel='Test2';
proc report data=test2 headline nowindows contents='' ;
columns id state county;
define id/group;
break before id/page contents='';
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1717121731903.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96880iEF449BBA0C6531A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1717121731903.png" alt="Ksharp_0-1717121731903.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 02:15:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930358#M366039</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-05-31T02:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Multiple tables display output in same page with same by variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930497#M366099</link>
      <description>Iam looking for two proc report in one pdf , each one having by variable same and proc contents should be sync &lt;BR /&gt;&lt;BR /&gt;Proc report data=test1;by id;&lt;BR /&gt;columns col1 ocl2 col3;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Proc report data=test2;by id;&lt;BR /&gt;columns col5 col6 col7;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 01 Jun 2024 00:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930497#M366099</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2024-06-01T00:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Multiple tables display output in same page with same by variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930504#M366104</link>
      <description>&lt;P&gt;You want this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input id fname $4. lname $5. age;
cards;
123 abc1 def1 24
124 abc2 def2 25
125 abc3 def3 26
;
run;


data test2;
input id state $7. county $9. ;
cards;
123 state1 county1
124 state2 county2
125 state3 county3
;
run;

options orientation=landscape;

ods document name=testAW(write);
proc report data=test contents='' headline nowindows ;by id ;
columns id fname lname age;
define id/group;
break before id / contents="" page;
run;
proc report data=test2 contents='' headline nowindows ;by id ;
columns id state county;
define id/group;
break before id / contents="" page;
run;
ods document close;

proc document name=testAW;
list/ levels=all; run;
quit;




proc document name=testAW2(write);
make \CLASS#1;
setlabel \Class#1  "table set 1";
copy \work.testAW\Report#1\ByGroup1#1\Report#1 to \Class#1;
copy \work.testAW\Report#1\ByGroup2#1\Report#1 to \Class#1;
copy \work.testAW\Report#1\ByGroup3#1\Report#1 to \Class#1;
run;
make \CLASS2#1;
setlabel \Class2#1  "table set 2";
copy \work.testAW\Report#2\ByGroup1#1\Report#1 to \Class2#1;
copy \work.testAW\Report#2\ByGroup2#1\Report#1 to \Class2#1;
copy \work.testAW\Report#2\ByGroup3#1\Report#1 to \Class2#1;
run;

list/ levels=all; run;
quit;


title;
proc document name=work.testAW2;
ods pdf file="c:\temp\name.pdf"  startpage=no ;
obtitle \CLASS#1\Report#1 'table set 1';
replay \CLASS#1;
run;

ods pdf startpage=now;
obtitle \CLASS2#1\Report#1 'table set 2';
replay \CLASS2#1;
run;
ods pdf close;
quit;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1717225138194.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/96898i958FE417E7B81C9A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1717225138194.png" alt="Ksharp_0-1717225138194.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jun 2024 06:59:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Multiple-tables-display-output-in-same-page-with/m-p/930504#M366104</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-06-01T06:59:07Z</dc:date>
    </item>
  </channel>
</rss>

