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

Last statement of any rpg program is lr?

815


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

772


How to find the list of source physical files in a library?

819


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.

2328


I have a pf, it contains 5 members, how to access particular member data from logical file?

719


How to change the batch job to interactive job?

731


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

816


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

793


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?

808


How many maximum record format a logical file have?

761


What is FORMAT keyword and its use?

374


What is the batch job?

758


I have physical file with 100 records,there is no any duplicate records in this pf.based on this pf one logical file I have used.but this lf is viewing only 80 records only of that pf?what is the reason for this?

879


What is the use of member in pf?

750


There is one string as A B C and wanted to display string as Shri A Shri B Shri C, how we can do this in sql? If we have around 100 values in string like this, each value should be displayed with initials as Shri.

937