The SAS Output Delivery System and reporting techniques

Proc report data=x style=journal

Reply
Super Contributor
Posts: 272

Proc report data=x style=journal

I need to add a line after a group variable. The following code works. The line appears after all groups of observations. But I need it have only after first group of observations. How to write a code.Thanks.

 

compute after grp/style={protectspecialchars=off};
line '\brdrt\brdrs ';
endcomp;

SAS Super FREQ
Posts: 8,813

Re: Proc report data=x style=journal

Hi:
First, style=journal goes on the ODS statement, NOT on the PROC REPORT statement.
Second, a LINE statement is executed EVERY time the break occurs, so the only thing you can do to write the line "conditionally" is to make a text variable to hold the text you want for the occurrence. Then you use a different form of the compute block as explained in this Tech Support note: http://support.sas.com/kb/37/763.html (The second code example that uses $varying. is the one you want to follow.)

cynthia
Ask a Question
Discussion stats
  • 1 reply
  • 320 views
  • 0 likes
  • 2 in conversation