Date: Wed, 1 Sep 2004 16:00:04 -0400
Reply-To: "Chang Y. Chung" <chang_y_chung@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Chang Y. Chung" <chang_y_chung@HOTMAIL.COM>
Subject: Re: Multiples files
On Wed, 1 Sep 2004 16:58:52 -0300, Silvano Cesar da Costa <silvano@UEL.BR>
wrote:
>Hi,
>
>I have about 70 variables in my file. I have 500 data lines.
>One variable has 10 levels. I would like creating 10 files (one for each
>level) whith every variables (70 variables)
Hi,
It is very easy to do this, but my best quess is that you don't have to.
Most of the sas proc's support by (sub) statements, that enables you to
repeat the same analysis within each of the 10 levels. For example,
proc sort data=yourdata out=sorted;
by yourLevelVar;
run;
proc freq data=yourdata;
table anotherVar;
by yourLevelVar;
run;
HTH.
Cheers,
Chang
|