BookmarkSubscribeRSS Feed
_LB
Fluorite | Level 6 _LB
Fluorite | Level 6
Hello all;
I am trying to introduce breaks between sections within a proc report statement. This works normally but not within the ODS statements as I read in the SAS guide to Report Writing.

Is there is an easy way to create white speaces between sections?
Pertinent code follows below. Thank you.

Lawrence


proc report data=priormonth nowd ;
column header _label_ bwcat1 bwcat2 bwcat3 bwcat4 bwcat5 total ;

define header /order format=H. Width=20 ' ' style={background=lavender} ;

define _label_ /width=20 " " ;
define bwcat1 / "BWCAT1 (0-750 grams)" format=5.0 ;
define bwcat2 /"BWCAT2 (750 - 1000 grams)" format=5.0 ;
define bwcat3 /"BWCAT3 (1001 - 1500 grams)" format=5.0 ;
define bwcat4 /"BWCAT4 (1501 - 2500 grams)" format=5.0 ;
define bwcat5 /"BWCAT5 (>2500 grams)" format=5.0 ;
define total /"TOTAL*" format=5.0 style={background=gold};
break after header /skip;
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
It would help to also include your ODS statement usage, since the SAS behavior may be different depending on whether it is HTML, PDF, etc.

Scott Barry
SBBWorks, Inc.
Cynthia_sas
Diamond | Level 26
Hi:
It is true that the SKIP option does not work with ODS in the manner that it works with LISTING.

However, you CAN use a LINE statement with ODS and PROC REPORT to accomplish the same thing that SKIP does. Relevant code snippet below.

(PS: WIDTH= is also ignored by ODS ... see this link for more "workarounds" for LISTING options that are not used by ODS (such as HEADLINE, WIDTH, etc)
http://support.sas.com/kb/2/549.html
http://support.sas.com/rnd/base/ods/templateFAQ/report1.html)

cynthia

[pre]
define header /order format=H. Width=20 ' ' style={background=lavender} ;
... more code ...
break after header /skip;
compute after header;
line ' ';
endcomp;

[/pre]

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore 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
  • 2 replies
  • 1213 views
  • 0 likes
  • 3 in conversation