what is open data path? and what is the diff b/w access path
and open data path?

Answer Posted / mohan

An access path describes the order in which the rows are
retrieved from a database file. If the rows in the file are
accessed in a physical sequence, that is known as an
arrival sequence access path. If the rows need to be
processed in an ordered manner, then a keyed access path is
needed to sort the data in the specified order. With DB2
for iSeries, keyed access paths are supplied to DB2 by
creating a keyed logical file, keyed physical file, or SQL
index.

An access path and an open data path are used together to
process the rows in a database file.

The open data path (ODP) is the path through which all
input and output operations are performed on a database
file. The ODP is used to connect the requesting program
with the data in the file. As data is retrieved from or
inserted into the file, the ODP will use an access path to
navigate to a row within in the file. If the rows need to
be processed in a sorted owner, then someone will need to
supply a keyed access path by creating a keyed physical
file, keyed logical file or SQL index.

An ODP is created and used each time that a file is opened
or when an SQL statement is executed. There are ways to
have an ODP shared or reused instead of creating the ODP
each time.

Is This Answer Correct ?    33 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where the QTEMP library will get created? if the the answer is QSYS, then howcome more than one job can create same library name(QTEMP) in QSYS? what is the uniqueness of QTEMP? For example, run the below command in different workstation WRKOBJ QSYS/QTEMP And take 8 in the option to check the description. both will have different info. so where(which LIB) exactly the QTEMP is stored?

7408


What is the interactive job? What is the batch job? How to change the batch job to interactive job?

620


How to change the batch job to interactive job?

569


What is the purpose of the chain and setll and setgt?

575


How to read a pf in reverse(from last record to first) using cl?

589






What is FORMAT keyword and its use?

189


In a CL Program after executing a SQL SP how to receive a Output value from the SP. Just to make it clear I am sending 2 input and 1 output parameter to the SQL Stored Procedure. Now while receiving it output parm it is failing.

2118


What is the batch job?

564


What is the difference between access path and open data path?

588


What is the interactive job? What is the batch job?

577


Can we concatenate fields in physical file? If yes how can we do?

580


Suppose I have a pf,it contains 5 members,how to access particular member data from logical file ?and what is the use of member in pf?

623


What is the use of member in pf?

530


How many maximum record format a logical file have?

571


When we create a pf and did not fill up maint parameter, then by default which access path will the system take & why?

560