![]() Chapter Contents |
![]() Previous |
![]() Next |
| SAS/ACCESS Software for Relational Databases: Reference |
| Using the FREQ Procedure with Descriptors |
proc access dbms=oracle;
/* create access descriptor */
create adlib.invoice.access;
user=scott orapw=tiger;
path='myorapath';
table=invoice;
/* create vlib.inv view */
create vlib.inv.view;
select invoicenum amtbilled
country
billedby paidon;
rename invoicenum = invnum
amtbilled = amtbilld;
format paidon date9.
invoicenum 5.0
billedby 6.0;
list all;
run;
proc freq data=vlib.inv;
tables country;
title 'Data Described by INV';
run;| Using the FREQ Procedure with a SAS/ACCESS LIBNAME |
libname mydb2lib db2 ssid=db2; proc freq data=mydb2lib.invoice(keep=invoicenum amtbilled country billedby paidon); tables country; title 'Data Described by INV'; run;
Using the FREQ Procedure shows the one-way frequency table that these examples generate.
Data Described by INV 1
The FREQ Procedure
COUNTRY
Cumulative Cumulative
COUNTRY Frequency Percent Frequency Percent
-------------------------------------------------------------------------
Argentina 2 11.76 2 11.76
Australia 1 5.88 3 17.65
Brazil 4 23.53 7 41.18
USA 10 58.82 17 100.00 |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.