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

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

620


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

522


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


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

560


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

581






How to retrieve a physical file after deleting that?

576


How to change the batch job to interactive job?

569


How many maximum record format a logical file have?

571


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.

720


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

577


What is open data path?

566


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

580


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

610


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

575


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.

2117