I used the PARSKIP functionality as shown in the template below, but it did not affect the spacing between the tables in ODS PDF. Was it applied incorrectly?
proc template;
define style styles.BlueK;
parent=styles.pearl;
class colors /
'link2' = cx0000FF
'link1' = cx800080
'docbg' = cxFAFBFE
'contentbg' = cxFAFBFE
'systitlebg' = cxFAFBFE
'titlebg' = cxFAFBFE
'proctitlebg' = cxFFFFFF
'headerbg' = cxEDF2F9
'captionbg' = cxFAFBFE
'captionfg' = cx112277
'bylinebg' = cxFAFBFE
'notebg' = cxFAFBFE
'tablebg' = cxFAFBFE
'batchbg' = cxFFFFFF
'systitlefg' = cx112277
'titlefg' = cx112277
'proctitlefg' = cx112277
'bylinefg' = cx112277
'notefg' = cx112277;
class Header /
bordercolor = cxB0B7BB
backgroundcolor = cxEDF2F9
color = cx112277;
class RowHeader /
bordercolor = cxB0B7BB
backgroundcolor = cxEDF2F9
color = cx112277;
class fonts /
'TitleFont2' = ("<sans-serif>, <MTsans-serif>, Helvetica, Helv",2, bold)
'TitleFont' = ("<sans-serif>, <MTsans-serif>, Helvetica, Helv",3,bold)
'StrongFont' = ("<sans-serif>, <MTsans-serif>, Helvetica, Helv",2, bold)
'EmphasisFont' = ("<sans-serif>, <MTsans-serif>, Helvetica, Helv",2, italic)
'FixedFont' = ("<monospace>, Courier",2)
'BatchFixedFont' = ("SAS Monospace, <monospace>, Courier, monospace",2)
'FixedHeadingFont' = ("<monospace>, Courier, monospace",2)
'FixedStrongFont' = ("<monospace>, Courier, monospace",2,bold)
'FixedEmphasisFont' = ("<monospace>, Courier, monospace",2,italic)
'headingEmphasisFont' = ("<sans-serif>, <MTsans-serif>, Helvetica, Helv",2,bold italic)
'headingFont' = ("<sans-serif>, <MTsans-serif>, Helvetica, Helv",2, bold)
'docFont' = ("<sans-serif>, <MTsans-serif>, Helvetica, Helv",2);
class Table /
cellpadding = 2pt;
style systemfooter from titlesandfooters /
font_weight=light
font_size=8pt;
Style parskip / fontsize=4Pt;
end;
run;
You should also provide the code generating your tables including your ODS PDF statement(s). Best is to provide data so we can duplicate the behavior or provide code using SAS supplied data sets like SASHELP.Class.
Hi:
It's always a good idea to check your style attributes to make sure they work the way you want in the destination you want. For example, if you check here in the documentation: https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsadvug/p16od8jghibo9tn187hloazdzt70.htm you'll see that PARSKIP looks like it is only supported in the RTF destination.
So if your template is going to be used with ODS PDF, you'll need to investigate what is possible with table spacing with ODS PDF.
You may want to work with Tech Support on this question.
Cynthia
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.