Date: Sun, 13 Feb 2005 02:11:06 -0000
Reply-To: srihari swamynathan <srihari1981@rediffmail.com>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: srihari swamynathan <srihari1981@REDIFFMAIL.COM>
Subject: Problem: PROC REPORT with URLSTRING
Content-Type: text/plain; charset=iso-8859-1
Hello everybody,
This is Srihari from Lamar univ, TX. Hope everyone is doing fine. I have a question with PROC REPORT while using the COMPUTE option. The program is shown below. After execution of the following program, the patient ids 1813 and 1826 will become an URL and clicking the URLs 1813 or 1826, will take us to messenger.yahoo.com as directed. But if I want to make the URLs 1813 and 1826 to be directed to different pages/links, how should I code that.
Please give your suggestions/ opinions. Thanks for all your help.
Regards,
Sri.
PROGRAM
DATA CLINIC ;
INFILE VIJ ;
INPUT PATIENT DRUG $;
CARDS ;
1813 A
1826 B
ODS LISTING CLOSE ;
ODS HTML BODY = “EXAMPLE.HTM” ;
TITLE 'BLOOD PRESSURE STUDY' ;
PROC REPORT DATA = CLINIC NOWD SPLIT = '\' ;
COLUMN PATIENT DRUG ;
DEFINE PATIENT / GROUP ;
DEFINE DRUG / GROUP ;
COMPUTE PATIENT ;
URLSTRING = "HTTP://MESSENGER.YAHOO.COM" ;
CALL DEFINE (_COL_,'URL',URLSTRING) ;
ENDCOMP ;
RUN;
ODS HTML CLOSE ;
|