The SAS Output Delivery System and reporting techniques

Showing 2 proc reports on same page

Reply
Frequent Contributor
Posts: 143

Showing 2 proc reports on same page

reg_c and pipe_c are two different proc report entries.  They show on different pages.  Is there a way to show both on the same page with reg_c first, then pipe_c???  See attachment

 

PROC REPORT DATA=reg_c headskip split='*' wrap nowd

 

style(report)=[background=black cellspacing=10 just=center font_size=11pt font_face="Calibri" bordercolor=black borderwidth=1]

style(column)=[background=white font_size=10pt bordercolor=black borderwidth=1]

 

;

 

COLUMNS _all_;

DEFINE r3&last_mth_displ3. /DISPLAY style(column)={just=center} "&last_mth_displ3.";

DEFINE r2&last_mth_displ2. /DISPLAY style(column)={just=center} "&last_mth_displ2.";

DEFINE r1&last_mth_displ1. /DISPLAY style(column)={just=center} "&last_mth_displ1.";

title1 'Registrations';

 

PROC REPORT DATA=pipe_c headskip split='*' wrap nowd

 

style(report)=[background=black cellspacing=10 just=center font_size=11pt font_face="Calibri" bordercolor=black borderwidth=1]

style(column)=[background=white font_size=10pt bordercolor=black borderwidth=1]

 

;

 

COLUMNS _all_;

DEFINE p3_&last_mth_displ3. /DISPLAY style(column)={just=center} "&last_mth_displ3.";

DEFINE p2_&last_mth_displ2. /DISPLAY style(column)={just=center} "&last_mth_displ2.";

DEFINE p1_&last_mth_displ1. /DISPLAY style(column)={just=center} "&last_mth_displ1.";

 

title1 'Pipeline';

run;


proc_report_1.png
Super User
Posts: 11,343

Re: Showing 2 proc reports on same page

If you specify the ODS destination it may help to be specific. For RTF or PDF you would try setting the STARTPAGE option to NO.

 

ods rtf file="your file goes here" startpage=no;

 

proc report ...

 

proc report ...

 

ods rtf close;

 

 

Super User
Posts: 10,046

Re: Showing 2 proc reports on same page

It seems that you are using HTML destination ? Check Page_Break option.

 

ods html options(doc='help' page_break='no') file='/folders/myfolders/x.html';
proc print data=sashelp.class;run;
proc print data=sashelp.class;run;
ods html close;
Ask a Question
Discussion stats
  • 2 replies
  • 390 views
  • 0 likes
  • 3 in conversation