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

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

636


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?

7462


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

577


How to know the particular record in pf with out reading?

600


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?

642






How to index LF by relative record no (RRN)

2845


What is the batch job?

586


Last statement of any rpg program is lr?

624


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

603


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

594


What is the use of member in pf?

548


How many maximum record format a logical file have?

594


What is the primary file?

596


How to retrieve a physical file after deleting that?

592


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

634