The SAS Output Delivery System and reporting techniques

Adjust title and blank between graphs

Reply
Contributor
Posts: 29

Adjust title and blank between graphs

 

Hello everyone,

 

It have tried thousand solutions just to have a beautiful report not such as this: http://image.noelshack.com/fichiers/2015/42/1444900751-picture.jpg

 

As you can see there are huge blanks between sentences/tables.

 

I changed first the parskip style in the template such as:

 style parskip / fontsize = 10pt;

 

The problem is that with bodytitle option, it does not work and if I don't specify bodytitle, yes, it works but even graphs or pictures can be include into header sections of a word document.

 

So I tried tagsets.rtf. It works but I can't have multiple titles on the same page for a table, it is to say that if I use proc print with a title inside, it appears, but if there are others tables with a title inside on the same page, they do not appear.

 

Of course, I can write my titles like data in a table but sometimes my tables do not appear (it is for a quality control rapport) so I do not need a title if there is no data tables to display.

 

Have you got any idea to solve my problem?

 

Have a nice day

Occasional Contributor jb3
Occasional Contributor
Posts: 15

Re: Adjust title and blank between graphs

Hi,

 

As far as I understand, titles and footnotes are supposed to be printed only once per page. I have used tagsets.rtf with an "ods text" statement above the chart instead of title statements to achieve several text formatted as titles on a single page, see code below.

 

Hope that helps!

 

options nocenter;
goptions device=ACTXIMG;
title;
footnote;

ods tagsets.rtf file='c:\Test.rtf';

ods escapechar="^";
ods text="^S={font_face='Arial Black' font_size=12pt}This is text that looks like a title";

proc sgplot data=sashelp.cars;
 vbar cylinders;
run;

ods text="^S={font_face='Arial Black' font_size=12pt}This is another text that looks like a title";

proc gchart data=sashelp.cars;
 vbar cylinders;
run;

ods text="^S={font_face='Arial Black' font_size=12pt}This is yet another text that looks like a title";

proc tabulate data=sashelp.cars;
 class make cylinders;
 table make, cylinders ;
run;

ods tagsets.rtf close;
Post a Question
Discussion Stats
  • 1 reply
  • 208 views
  • 0 likes
  • 2 in conversation