As the first step in the decommissioning of the site has been converted to read-only mode.

Here are some tips for How to share your SAS knowledge with your professional network.

Tips:Using SPANROWS To Repeat Values Across Pages

From sasCommunity
Revision as of 12:25, 13 September 2017 by Paulkaefer (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
data class30;
set sashelp.class;
do check = 1 to 30;
ods pdf file ='c:\temp\class30.pdf';
proc report data=class30 nowd out=show spanrows;
    column age name check sex;
    define age /order;
    define name / order ;
ods pdf close;

The new (SAS 9.2) SPANROWS option on the PROC REPORT statement, provides a way to repeat the value of a GROUP or ORDER variable if that variable's value spans more than one page. The option works with RTF, PDF, and some other destinations. See a SAS Forum thread on this.

Submitted by Art Carpenter. Contact me at my Discussion Page.

....see also