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

Answer Posted / abhradeep chatterjee

An open data path is the path through which all
input/output operations
for the file are performed. In a sense, it connects the
program to a file. If you do not specify the SHARE(*YES)
parameter, a new open data path is created every time a
file is opened. If an active file is opened more than once
in the same job or activation group, you can use the active
ODP for the file with the current open of the file. You do
not have to create a new open data path.

Whereas, Access path is path through which you can retrieve
records. There are 6 types of access path is
supported by SYNON. By default Synon creates 3 access path
namely Physical, Update and
Retrieve access paths.

1. ‘PHY’: Physical file: Arrival sequence access path
defining the based-on file. For a given
AllFusion 2E file there may only be one access path of type
PHY - the path will automatically be
created by AllFusion 2E.

2. ‘UPD’: Update: Access path used for update. Path is
keyed on AllFusion 2E fields that identify
the file. For a given AllFusion 2E file there may be
several different access paths of type
UPD, each containing a different combination of fields. A
default update path containing all
fields will automatically be created by AllFusion 2E.

3. ‘RTV’: Retrieval: Access path used to retrieve records
from file. The key order cannot be
changed. For a given AllFusion 2E file there may be many
access path of type RTV - a default
path, keyed on the identifying fields for the file, will
automatically be created by AllFusion 2E.
Each ‘RTV’ access path has an associated 'UPD' access path.

4. ‘RSQ’: Resequence: Access path used to retrieve records
from file using an alternative key
order. For a given AllFusion 2E file there may be many
access paths of type 'RSQ'.

5. 'QRY' : Query: Access path used to retrieve records from
file using an alternative key
order which may include virtual fields. For a given
AllFusion 2E file there may be many
access paths of type 'QRY'.

6. ‘SPN’: Span: Access path used to span several different
files using an alternative key order.
For a given AllFusion 2E file there may be many access
paths of type 'SPN'.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

594


What is FORMAT keyword and its use?

216


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

603


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

594


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

632






How to update physical file using logical file with example?

598


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

533


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

600


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


How to change the batch job to interactive job?

586


What is the batch job?

586


How to index LF by relative record no (RRN)

2843


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

636


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.

2136


Last statement of any rpg program is lr?

624