BookmarkSubscribeRSS Feed
soham
Calcite | Level 5
Hi,
I am trying produce the output with multiple tables on each page. I want them to one after another without any gap.
I did try to use below code. But still not able to achieve.
I didn't know whether PAGEPANELS and TABLESROWS will do anything.
Could you please help me?


proc template;
define style test2;
parent=styles.rtf;
style parskip / fontsize = .01in;
end;
run;
ods rtf style = test2 ;
proc report data = sashelp.class (obs =10) nowindows headline headskip;
run;
ods rtf startpage = no style = test2;
proc report data = sashelp.cntainer nowindows headline headskip;
compute before _page_;
Line " Containers data";
endcomp;
run;
ods rtf close;
ods listing;

Srisoham
4 REPLIES 4
Cynthia_sas
Diamond | Level 26
Hi:
I do not know whether you can have a PARSKIP value of 0 -- I believe it is the PARSKIP element that controls the amount of space between tables, as described here:
http://support.sas.com/rnd/base/new92/92measuredrtf.html#para

When I modify that program, I cannot use a font less than 1pt as the value for PARSKIP, so I suspect that might be the tiniest space you can get. Aren't you seeing an error message someplace in your log -- like this????
ERROR: Integer divide by zero.
ERROR: Termination due to Floating Point Exception


cynthia
[pre]
ods listing close;


proc template;
define style test2;
parent=styles.rtf;
style parskip / fontsize = 1pt;
end;
run;


ods tagsets.rtf file="c:\temp\mparskip.rtf"
OPTIONS(SECT="NONE") STARTPAGE=NO style=test2;

title "Test Title";
footnote "Test Footnote";

proc report data=sashelp.class (obs=5) nowd;
compute before _page_;
line 'CLASS';
endcomp;
run;

proc report data=sashelp.shoes (obs=5) nowd;
compute before _page_;
line 'SHOES';
endcomp;
run;

proc report data=sashelp.cars (obs=5) nowd;
column Make Model Type Origin DriveTrain MSRP Invoice;
compute before _page_;
line 'CARS';
endcomp;
run;

ods _all_ close;
ods listing;
[/pre]
soham
Calcite | Level 5
Hi Cynthia,
The code looks fine and worked like charm. I made a small change.

style parskip / fontsize = .1pt;


I try to used without TAGSETS. But it is not working as it did with TAGSETS.

Does it really works with TAGSETS only?

Thanks,
Srisoham
Cynthia_sas
Diamond | Level 26
Hi:
You mean you tried to use your new style with just ODS RTF or ODS PDF or ODS HTML instead of TAGSETS.RTF??? I think that PARSKIP was explicitly designed to work with TAGSETS.RTF --and not for original ODS RTF.

For original ODS RTF, I think the default space between tables is 2 or 4 carriage returns....and I think for original ODS RTF, you still get a section break between each table.

So, if that's what you mean, then yes, I believe that a changed PARSKIP works with TAGSETS.RTF destination.

cynthia
soham
Calcite | Level 5
Hi Cynthia,
Yes. I try to use it in general ODS RTF or ODS PDF or ODS HTML. Output is generated with breaks between tables. PARSKIP is working in ODS RTF without any impact on output.
Thanks very much for you help.
Srisoham

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 4765 views
  • 0 likes
  • 2 in conversation