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 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 7 Jun 2002 08:48:12 -0700
Reply-To:   John Uebersax <jsuebersax@YAHOO.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   John Uebersax <jsuebersax@YAHOO.COM>
Organization:   http://groups.google.com/
Subject:   ods html -- hierarchical BY VARIABLE index?
Content-Type:   text/plain; charset=ISO-8859-1

Thanks Mike and others who replied.

Here's a twist to make the question more interesing.

How about if one has two BY variables (e.g., PATIENT and DATE), and wishes to create a *hierachical* clickable index:

- One html page gives a clickable list of patients. - Clicking on a patient takes one to a clickable list of dates for that patient. - Clicking on a date shows the values collected on that date for the patient.

Is there an easy way to do this? Note that by default, adding a second BY variable to the example below would produce a single clicakble index that includes every combination of the BY variables, which is not much help in this application.

Thanks in advance.

John Uebersax

RHOADSM1@WESTAT.COM (Mike Rhoads) wrote in message news:<9B425F151083D311A218009027B00EA604E3F3C4@remailnt1-re01.westat.com>...

> To get a basic but workable index that contains the BY-variable value, you > can adapt the following... > ODS HTML BODY='IndexedReportBody.html' > CONTENTS='IndexedReportContents.html'; > > PROC REPORT DATA=TempClass NOWD; > BY FirstInitial; > COLUMNS Name Sex Age Height Weight; > DEFINE Name / DISPLAY; > DEFINE Sex / DISPLAY; > DEFINE Age / DISPLAY; > DEFINE Height / DISPLAY; > DEFINE Weight / DISPLAY; > RUN; > > ODS HTML CLOSE;


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