BookmarkSubscribeRSS Feed
daszlosek
Quartz | Level 8

Hello,

 

I am trying to have three proc report tables on the same page (side-by-side). Looking on the forums I found this article stating to use STARTPAGE= NO and columns=3. When I do this, only the title for the first proc report is shown and it is in the center (I tried changes the title numbers to different numbers and did it did not change.) In addition, the image on the next page is 'stuck' in the left most column and I would like it to be on the page in the center by itself. Attached below is the .rtf of what I have and want.

 

Any suggestions would be great or papers would be great!

 

Attached is the .rtf file for the proc report and below is the code.

 

Thank you!

 

options nobyline nodate nonumber orientation=landscape topmargin=1in leftmargin=0.5in bottommargin=1in rightmargin=0.5in;
ods listing close;
ods escapechar = '^';
ods rtf file="&outnam" style=journal STARTPAGE= NO  columns=3;                                     

title1 j=l h=1 '^S={postimage="/shares/groups/small.png" color=white} x'
       j=r h=1 "^S={fontstyle=ROMAN}Page ^{pageof}";
title2 j=l h=1 "^S={fontstyle=ROMAN}Study ID:";
title3 j=c h=3 "^S={fontstyle=ROMAN fontsize=9pt}Summary cats";
title4 j=c "  ";

footnote1 
          j=l       "^S={fontstyle=ROMAN fontweight=light ASIS=on}Note" 
          j=l       "^S={fontstyle=ROMAN fontweight=light ASIS=on}Note" 
          j=l       "^S={fontstyle=ROMAN fontweight=light ASIS=on}Note";
footnote2 j=l h=0.3 "  ";
footnote3 j=l h=0.3 "^S={fontweight=light}Note";

proc report data=a5 split='*' nowd;
   column  result gold_standard,value perish tp fn tn fp;
   define result / group  'cats* ';
   define gold_standard / across  'china';
   define value / analysis sum ' ';
   define tp /  noprint;
   define tn /  noprint;
   define fp /  noprint;
   define fn /  noprint;
   define perish / computed noprint format=percent8.2;
   compute before;
      tp1=  _c5_;
	  fn1=  _c6_; 
	  fp1=  _c8_;
   endcomp;
   compute perish;
      perish = (((tp1 + fp1)-(tp1 + fn1))/(tp1 + fn1)) ;
   endcomp;
   compute after;
            line  '% More cats: ' perish percent10.2;
         endcomp;
   title5 'title a';
run;

proc report data=b5 split='*' nowd;
   column  result gold_standard,value perish tp fn tn fp;
   define result / group  'cats* ';
   define gold_standard / across  'china';
   define value / analysis sum ' ';
   define tp /  noprint;
   define tn /  noprint;
   define fp /  noprint;
   define fn /  noprint;
   define perish / computed noprint format=percent8.2;
   compute before;
      tp1=  _c5_;
	  fn1=  _c6_; 
	  fp1=  _c8_;
   endcomp;
   compute perish;
      perish = (((tp1 + fp1)-(tp1 + fn1))/(tp1 + fn1)) ;
   endcomp;
   compute after;
            line  '% More cats: ' perish percent10.2;
         endcomp;
   title5 'title b';
run;

proc report data=c5 split='*' nowd;
   column  result gold_standard,value perish tp fn tn fp;
   define result / group  'cats* ';
   define gold_standard / across  'china';
   define value / analysis sum ' ';
   define tp /  noprint;
   define tn /  noprint;
   define fp /  noprint;
   define fn /  noprint;
   define perish / computed noprint format=percent8.2;
   compute before;
      tp1=  _c5_;
	  fn1=  _c6_; 
	  fp1=  _c8_;
   endcomp;
   compute perish;
      perish = (((tp1 + fp1)-(tp1 + fn1))/(tp1 + fn1)) ;
	     endcomp;
   compute after;
            line  '% More cats: ' perish percent10.2;
         endcomp;
   title5 'title c';
run;


proc report data=whip5 split='*' nowd;
   column  image;
   define image / computed style(column)={width=7.5in} 'Missing Results by Month';
compute image;
     image = 'Missing OD Results by Month';
     imageloc = catt('style={preimage="/shares/chart1.jpeg"}');
    call define(_col_,'style',imageloc);
   endcomp;
   title5 'Missing Results';
run;


ods rtf close;
ods listing;

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 0 replies
  • 3081 views
  • 0 likes
  • 1 in conversation