Date: Tue, 14 Nov 2006 15:40:30 -0500
Reply-To: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject: Re: outputing vairables in title statement
one possibility is, writing the contents of the variables to macro
variables, like:
data _null_;
set xxxx;
if _n_=1 then do;
call symput("v1",variable1);
call symput("v2",variable2);
...
stop;
end;
run;
title "&v1 &v2 ...";
On Tue, 14 Nov 2006 15:03:18 -0500, Siddharth Jain
<siddharth_jain@MERCK.COM> wrote:
>I am using Proc Report with ODS, how can I display some of the variables
>of the dataset in the Title statement. Something like:
> title1 "Name of Physician: <FirstNameFromVariableInDataset>";
>
>I have a dataset with 20 variables, 10 of whom dont change values. Instead
>of displaying all 20 variables, I want to display non-valuing changing
>variable in header and valuing changing variables in the body of the file.
>
>Thanks,
>Siddharth
|