BookmarkSubscribeRSS Feed
Kastchei
Pyrite | Level 9
I am running SAS 9.1.3 Service Pack 4 on XP.

I have the following proc report in ODS PDF. As written, just=d does not work. It becomes as if just=r. However, if I comment out either of the break statements, just=d works as expected. Not so much an open issue as just bug identification. The extra break in there is solely to build in more white space into the report, but isn't necessary.

proc report data = ii_2_t3 nowindows split = '~';
column _label_ sort _stat_ baseline endpoint;
define _label_ / order style = [just = l] 'Lab';
define sort / order noprint;
define _stat_ / display style = [just = l] 'Statistic';
define baseline / display style = [just = d] 'Baseline';
define endpoint / display style = [just = d] 'Endpoint';
break after _label_ / suppress summarize;
break before _label_ / suppress summarize;
run;
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
I'm a bit confused. You have all display variables, so the summarize on the BREAK statement is essentially not doing anything because there's nothing to summarize.
When I run equivalent code in SAS 9.2 and ODS PDF, I see the just=d working whether the BREAK statement is there or not.
If you feel you have found a bug, the best thing to do is open a ticket with Tech Support so they can test it in all current versions of SAS and report the problem to the developers.
The only difference between my code and yours is that I coded my DEFINE statements as:
[pre]
define baseline / display style(column) = [just = d] 'Baseline';
define endpoint / display style(column) = [just = d] 'Endpoint';
[/pre]

cynthia
Kastchei
Pyrite | Level 9
Yes, the breaks are strictly there to force white space between groups. The just works fine with one break statement, but not with both. Thanks for the advice. I'll put in a ticket.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of 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
  • 2 replies
  • 997 views
  • 0 likes
  • 2 in conversation