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:Spanning Headers in REPORT

From sasCommunity
Jump to: navigation, search

The text of a spanning header is used to form a label for multiple columns, and is defined in the COLUMN statement by adding a quoted string that precedes the columns that are to have the header. Parentheses are used to form groups of columns.

  proc report data=sashelp.class nowd;
     columns ('Demographics' name sex age)
             ('Measures' height weight);

You can also have nested spanning headers by nesting the parentheses:

  proc report data=sashelp.class nowd;
     columns ('Student Info' (name 
             ('Demographics' sex age))
             ('Measures' height weight));

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