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
SAS Super FREQ
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]

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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