Date: Fri, 19 Mar 2004 17:02:58 -0500
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: how to read the freq directly after proc means
You don't show the code which you run against SINMEDIAN and where
you "cannot USE freq as a variable directly", so here's just a guess. The
automatic variable is
(notice the underscores, which are part of the name), not
On Fri, 19 Mar 2004 13:08:48 -0800, sportsfun <sportsfun77@HOTMAIL.COM>
>Apparently, I did not state my question clearly enough. I want to use
>freq as a variable (N) and I need to compute a new variable using
>(N-1). When I use data new, set sinmedian, I still cannot USE freq as
>a variable directly. For example, I want to compute y=ind/(n-1), how
>can I do this without exporting the data and importing the data again.
>Since the variable freq is already there, I think there must be some
>way to use this variable directly. I hope you can understand my
>question better this time. I know this is a stupid question for many
>of you, however, that is exactly whyI come here for help. Thank you so
>much for your patience and help!
>jim.groeneveld@VITATRON.COM (Groeneveld, Jim) wrote in message
>> Hi fun,
>> How and who are you? Do a
>> PROC PRINT DATA=SINMEDIAN
>> and you'll see what's in there and how to use it directly.
>> Regards - Jim.
>> . . . . . . . . . . . . . . . .
>> Jim Groeneveld, MSc.
>> Science Team
>> Vitatron B.V.
>> Meander 1051
>> 6825 MJ Arnhem
>> Tel: +31/0 26 376 7365
>> Fax: +31/0 26 376 7305
>> My computer remains home, but I will attend SUGI 2004.
>> [common disclaimer]
>> -----Original Message-----
>> From: sportsfun [mailto:sportsfun77@HOTMAIL.COM]
>> Sent: Friday, March 19, 2004 16:12
>> To: SAS-L@LISTSERV.UGA.EDU
>> Subject: how to read the freq directly after proc means
>> For example, I ran the following program:
>> PROC MEANS DATA=SIN NOPRINT NWAY;
>> CLASS NSSIC;
>> VAR IND;
>> OUTPUT OUT=SINMEDIAN
>> I have the freq data in the sinmedian data but I don't know how to
>> read this data directly instead of export the file and read it through
>> infile input.
>> Thanks a lot!