Date: Fri, 15 Jan 2010 10:45:51 -0600
Reply-To: "Data _null_;" <iebupdte@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Data _null_;" <iebupdte@GMAIL.COM>
Subject: Re: getting the treatment codes
In-Reply-To: <c2192a611001150833r7ff12d4dh4a46ccd37559f77c@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
Yes exactly what Joe said. If you write the program so that it can
process any reasonable number of treatments then you can reuse it.
Devise a technique that
1) does not change when the number of treatments change
2) dose not change when the type of the treatment variable changes
3) derives all needed information from the data and related meta data.
On Fri, Jan 15, 2010 at 10:33 AM, SAS_learner <proccontents@gmail.com> wrote:
> Hello data_null_ ,
>
> Did not quite understand what you said ?
> Why do people think this is a good idea? This program is "tied" to
> the number of treatments in the study.
>
> Sorry What do you mean
>
>
>
>
> On Fri, Jan 15, 2010 at 8:28 AM, Data _null_; <iebupdte@gmail.com> wrote:
>>
>>
>> On Thu, Jan 14, 2010 at 1:41 PM, SAS_learner <proccontents@gmail.com>
>> wrote:
>> > Hello all I am trying to get the treatment codes and even though I could
>> > see
>> > the the output my maco &B is not getting resolved , what is that I am
>> > missing
>> > and what is this warning means
>> >
>> > 15 %let A = ;
>> > 16 %let B = ;
>> > 17 Proc Sql ;
>> > 18 select Count(distinct(Usubjid)) Into : A , : B
>> > 19 From Crtdir.Adsl
>> > 20 Group By Armcd;
>> > WARNING: INTO clause specifies more host variables than columns listed
>> > in
>> > the SELECT clause. Surplus host variables will not be set.
>> > 21 %put &A. ;
>> > 351
>> > 22 %put &B. ;
>> >
>> > 23 Quit;
>> >
>
>
|