Date: Thu, 28 Aug 2003 16:41:01 -0400
Reply-To: Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Subject: Re: Creating multiple datasets from one dataset
I agree.
Why not use a macro to set up WHERE filtering?
On Thu, 28 Aug 2003 15:32:30 -0400, Chakravarthy, Venky
<Venky.Chakravarthy@PFIZER.COM> wrote:
>In general, this approach is not considered good design. However, if you
>really want to do this, it is easy and has been discussed on this forum a
>number of times. See my pervious posting:
>
>http://listserv.uga.edu/cgi-bin/wa?A2=ind0210A&L=sas-l&P=R55861
>
>_________________________________
>Venky Chakravarthy
>E-mail: swovcc_AT_hotmail_DOT_com
>
>-----Original Message-----
>From: sas programmer [mailto:sasprogrammer@HOTMAIL.COM]
>Sent: Thursday, August 28, 2003 3:00 PM
>To: SAS-L@LISTSERV.UGA.EDU
>Subject: Creating multiple datasets from one dataset
>
>
>Hi
>
>I have a dataset with a variable which has 37 distinctive values (i.e
>after doing a proc sort with nodupkey ).
>
>Each value has multiple observations.
>
>What i need to do is create 37 different datasets for each distinctive
>value of the variable
>
>
>example
>
>TEST
>
>ALB
>ALB
>GLUC
>GLUC
>RET
>RET
>WBC
>WBC
>WBC
>RBC
>RBC
>RBC
>
>The test variable above has 5 values if i need to create 5 datasets
>for each value how can i do that.
>
>SAS programmer
>
>
>LEGAL NOTICE
>Unless expressly stated otherwise, this message is confidential and may be
privileged. It is intended for the addressee(s) only. Access to this E-mail
by anyone else is unauthorized. If you are not an addressee, any disclosure
or copying of the contents of this E-mail or any action taken (or not
taken) in reliance on it is unauthorized and may be unlawful. If you are
not an addressee, please inform the sender immediately.
|