|
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;
|