Chapter Contents |
Previous |
Next |
SAS/ACCESS Software for Relational Databases: Reference |
Using the GCHART Procedure with Descriptors |
proc access dbms=rdb; /* create access descriptor */ create adlib.order.access; database='atlanta::disk1:[root]textile.rdb'; table=orders; assign=yes; rename dateorderd = dateord processdby = procesby; format dateorderd datetime9. shipped datetime9. ordernum 5.0 length 4.0 stocknum 4.0 takenby 6.0 processdby 6.0 fabcharges 12.2; list all; /* create vlib.allordr view descriptor */ create vlib.allordr.view; select all; run; proc gchart data=vlib.allordr; vbar stocknum / discrete; title 'Data Described by VLIB.ALLORDER'; run;Output for both of these examples is shown in Output from PROC GCHART. STOCKNUM represents each product. The number of orders for each product is represented by the height of the bar. (In some operating environments, the increments on the vertical axis may be different.)
Using the GCHART Procedure with a SAS/ACCESS LIBNAME |
libname myoralib oracle user=dmitry pass=elvis path='txtdata' schema=textile; proc gchart data=myoralib,orders; vbar stocknum / discrete; title 'Data Described by VLIB.ALLORDER'; run;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.