PROC Freq - Output

  • Follow


Hello,

This might be a simple PROC question ,
By using PROC FREQ, I have got the result I am looking for, but not sure
how do I output to a data set.
Do I need to use BY variable , If I need to use OUT=data set name

 proc freq data=map1;
 weight cnt;
 table week;
run;

                           The FREQ Procedure

Cumulative    Cumulative
       Week    Frequency     Percent     Frequency      Percent
       ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
       0              4       33.33             4        33.33
       1              7       58.33            11        91.67
       2              1        8.33            12       100.00


Please Advice.
Swamy
0
Reply sasswamy (42) 1/11/2010 11:04:23 PM

If you only want frequency and percent then you could use:

proc freq data=sashelp.class;
  weight height;
  table age/out=want;
run;

Otherwise, there is always ODS.

Art
--------
On Mon, 11 Jan 2010 18:04:23 -0500, SAS Swamy <sasswamy@GMAIL.COM> wrote:

>Hello,
>
>This might be a simple PROC question ,
>By using PROC FREQ, I have got the result I am looking for, but not sure
>how do I output to a data set.
>Do I need to use BY variable , If I need to use OUT=data set name
>
> proc freq data=map1;
> weight cnt;
> table week;
>run;
>
>                           The FREQ Procedure
>
>Cumulative    Cumulative
>       Week    Frequency     Percent     Frequency      Percent
>       ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
>       0              4       33.33             4        33.33
>       1              7       58.33            11        91.67
>       2              1        8.33            12       100.00
>
>
>Please Advice.
>Swamy
0
Reply art297 (4237) 1/11/2010 11:18:58 PM


1 Replies
403 Views

(page loaded in 0.081 seconds)

Similiar Articles:













7/25/2012 1:19:29 AM


Reply: