LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2002, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 18 Jun 2002 16:08:28 -0400
Reply-To:   Ray Pass <raypass@ATT.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Ray Pass <raypass@ATT.NET>
Subject:   Re: PROC REPORT
Comments:   To: David Friedman <harrypotterdhf@EARTHLINK.NET>
In-Reply-To:   <200206181943.g5IJhfQ27443@listserv.cc.uga.edu>
Content-Type:   multipart/alternative;

At 03:43 PM 06/18/2002 -0400, David Friedman wrote: >Is there a way to make column headings in proc report such that there is a >sub heading as in the example below, Physical Characteristics having sub >headings of weight and height? > > >Patient Number Physical Characteristics >-------------- ------------------------------- > Height(lb) Weight (inches) > --------- --------------- >1000 60 90 >2000 72 180

It's easy! (I took the liberty of adding a few cosmetic changes, including labelling height in inches and weight in lbs as opposed to vice versa :-)

... columns ptnum ('Physical Characteristics/--' height weight);

define ptnum / '//Patient Number/--' width=14; define height / 'Height(ins)/--' width=11 center; define weight / 'Weight(lbs)/--' width=11 center; ...

This should produce (untested):

Physical Characteristics ------------------------ Patient Number Height(ins) Weight(lbs) -------------- ----------- ----------- 1000 60 90 2000 72 180

HTH,

Ray

*------------------------------------------------* | Ray Pass, Ph.D. voice: (914) 693-5553 | | Ray Pass Consulting eFax: (914) 206-3780 | | 5 Sinclair Place cell: (914) 450-0555 | | Hartsdale, NY 10530 e-mail: raypass@att.net | *------------------------------------------------*


[text/html]


Back to: Top of message | Previous page | Main SAS-L page