The following table shows the i OS implementation attributes for each of the access paths:
Access Path Type |
(1) (2) Unique or Dup Key Sequence (DDS only) |
(3) Access Path Maintenance |
(4) Alt Col (DDS only) |
(5) Selection |
SQL |
DDS |
DDL |
---|---|---|---|---|---|---|---|
PHY Physical |
Generating and Compiling |
- |
- |
- |
Table |
Physical File |
Table |
UPD Update (default) |
I |
- |
- |
View and Index |
Logical File |
Index |
|
UPD Update |
I/D/R |
- |
- |
View and Index |
Logical File |
Index |
|
RTV Retrieval (default) |
I |
- |
S,D |
View and Index |
Logical File |
Index |
|
RTV Retrieval |
I/D/R |
- |
S,D |
View and Index |
Logical File |
Index |
|
RSQ Resequence |
I,D,R |
Yes |
S,D |
View and Index |
Logical File |
Index |
|
QRY Query |
I/D/R (6) |
- |
D |
View and Index |
Physical File |
- |
|
SPN Span |
I,D,R |
Yes |
S,D |
Two Indexes and two Views |
CL Program Logical File |
- |
The following legend applies for the access path types:
(1) Unique key status (DDS unique keyword or SQL unique keyword with create index statement). U indicates unique; if not unique, see Note (2). The default UPD and RTV access paths must be unique.
(2) Duplicate key sequence for DDS only (L=LIFO, F=FIFO,' '=undefined, C=FCFO).
(3) i OS access path maintenance (I=*IMMED,R=*REBLD, D=*DLY). For QRY access paths, see item (6).
(4) Alternative collating sequence table for DDS only (DDS ALTCOL keyword).
(5) Selection type (S=static, D=dynamic) (DDS DYNSLT keyword).
(6) Causes the i OS OPNQRYF command to be called with the OPTIMIZE option equal to *FIRSTIO, *MINWAIT, or *ALLIO, respectively.
For SQL, static selection is implemented through SQL Data Definition Language (DDL) statements. Dynamic selection is implemented by Data Manipulation Language (DML) statements.
Note: If an SQL-generated RSQ access path has select/omit criteria and is defined as Unique with Static maintenance, the key defined as unique must be unique over the entire file and not just with a subset of that file (as defined by the select/omit criteria).
The current implementation of the DDL generation mode is not valid for SPN access path, QRY access path, access paths that have virtual fields, and multi-member files.
In addition, the following table shows which of the SPN access path / QRY access path / access paths that have virtual fields / multi-member files are valid for SQL implementation.
YDBFGEN / YDBFACC |
SPN Access Path |
QRY Access Path |
Access Path with Virtual Fields |
Multi-Members |
---|---|---|---|---|
YDBFGEN = *SQL YDBFACC = *DBFGEN |
Y |
Y |
Y |
N |
YDBFGEN = *SQL YDBFACC = *TABLE |
Y |
Y (Source does not contain SQL statements. Function based on access table) |
Y |
N |
Copyright © 2014 CA.
All rights reserved.
|
|