ADABAS Data in SAS Programs |
CHART procedure programs work with ADABAS data that is described by view descriptors just as they do with other SAS data sets. The following example uses the view descriptor VLIB.ALLORDR to create a vertical bar chart of the number of orders per product.
proc chart data=vlib.allordr; vbar stocknum; title "Data Described by VLIB.ALLORDR"; run;
VLIB.ALLORDR accesses data from the NATURAL DDM named ORDER. The following output shows the results for this example. STOCKNUM represents each product; the number of orders for each product is represented by the height of the bar.
Results of Charting ADABAS Data
Data Described by VLIB.ALLORDR Frequency 8 + ***** ***** ***** ***** | ***** ***** ***** ***** | ***** ***** ***** ***** | ***** ***** ***** ***** | ***** ***** ***** ***** 7 + ***** ***** ***** ***** | ***** ***** ***** ***** | ***** ***** ***** ***** | ***** ***** ***** ***** | ***** ***** ***** ***** 6 + ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** 5 + ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** 4 + ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** 3 + ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** 2 + ***** ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** ***** 1 + ***** ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** ***** | ***** ***** ***** ***** ***** ***** ---------------------------------------------------------------------------- 750 2250 3750 5250 6750 8250 9750 STOCKNUM
For more information about the CHART procedure, see the Base SAS Procedures Guide.
If you have SAS/GRAPH software, you can create colored block charts, plots, and other graphics based on ADABAS data. See the SAS/GRAPH Software: Reference, Volumes 1 and 2 for more information about the types of graphics you can produce with SAS/GRAPH software.
Copyright © 2007 by SAS Institute Inc., Cary, NC, USA. All rights reserved.