Chapter Contents |
Previous |
Next |
SAS/ACCESS Interface to ADABAS Software |
An ADABAS database consists of three system files: Data Storage, Associator, and Work Storage.
To use the SAS/ACCESS interface to ADABAS, you need to be familiar with three ADABAS components: ADABAS files, NATURAL DDMs, and ADABAS descriptors (which is an ADABAS data field that provides an index of its values). ADABAS files and NATURAL DDMs are the components from which you create SAS/ACCESS access descriptor and view descriptor files. Knowing about ADABAS descriptors can help you minimize ADABAS's processing time for your SAS/ACCESS view descriptors.
Note: To avoid confusion, keep in mind the two usages of the term descriptor throughout this book:
The following sections describe ADABAS files, NATURAL DDMs, and ADABAS descriptors.
ADABAS Files |
Sample ADABAS File illustrates four data fields and seven logical records from an ADABAS file containing data about customers. The data fields are the vertical columns of data. The logical records are the horizontal rows of data.
CU CI ST CO 14324742 San Jose CA USA 14569877 Memphis TN USA 14898029 Rockville MD USA 24589689 Belgrade Yugoslavia 26422096 La Rochelle France 38763919 Buenos Aires Argentina 46783280 Singapore Singapore |
ADABAS files are created with the ADABAS utility ADACMP. (To see the
ADABAS data definition statements that created the ADABAS files used in this book, refer to
Example Data.)
A data field level number is a one-
or two-digit number, from 01 to 07, used in conjunction with data field grouping. (Grouping is discussed in ADABAS Data Fields.) Data fields with a
level of 2 or greater are considered to be a part of the immediately preceding group, which has a lower level number.
Note: When you
create
SAS/ACCESS
descriptor files for ADABAS data, the ACCESS procedure creates a SAS variable named ISN. This variable gives you access to the ISNs for all logical records
stored in the ADABAS file.
NATURAL Data Definition Modules |
The filename for a NATURAL DDM can be a maximum of 32 characters.
ADABAS Descriptors |
Specifying ADABAS descriptors speeds up the selection process considerably since ADABAS is able to access key values directly. Also, specifying descriptors controls read sequence when reading ADABAS data in sequential order.
Several descriptor types can be specified for a data field. Each descriptor type is explained below.
Note: In order for you to use SAS variables corresponding to
ADABAS data fields in a SAS BY statement, an SQL ORDER BY clause, or a view SORT clause, the data field must be designated as an
ADABAS descriptor. Regarding a WHERE clause (both view and SAS), there are conditions when you can use a nondescriptor data field and when you must use a
descriptor data field. These conditions are explained
in ACCESS Procedure Reference.
You can include a subdescriptor in SAS/ACCESS descriptor files for retrieval and
selection criteria, but you cannot use subdescriptors in SAS System updating procedures.
You can include a superdescriptor
in
SAS/ACCESS descriptor files for retrieval and selection criteria, but you cannot use superdescriptors in SAS System updating procedures.
You can include a phonetic descriptor in SAS/ACCESS descriptor files for retrieval and selection criteria, but you cannot use phonetic descriptors in SAS System updating procedures.
Note that if you use a phonetic descriptor in a SAS WHERE clause, the interface view engine must be able to process the entire SAS WHERE clause.
Note: The hyperdescriptor type is not described because hyperdescriptors are not supported by the SAS/ACCESS interface to
ADABAS. Your ADABAS file can contain hyperdescriptors, but they will be
ignored.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.