What is the OPEN and CLOSE accesspath?




Answers were Sorted based on User's Feedback



Answer / abhay sharma

OPEN data path is the path which can be used by all the
files used in the PGM, we can think Open data path as a
bridge B/W File and Program.
This is the attribute of file which we specify when compile
the source this will ensure whether file will use ODP in
the program or will create seprate.

Is This Answer Correct ?    5 Yes 0 No

Answer / swetha p rao

As far as i know ,there are two types of access paths
Arrival Sequence and Keyed sequence access paths.

OPEN and CLOSE are two opcodes used in file handling.

Please correct me if i am wrong.

Is This Answer Correct ?    8 Yes 4 No

Answer / saravan

There are threee types of accesspath.
1)Arrival
2)Keyed
3)Maintenance - (i) *IMMED - Immediate no duplicates.
(ii) *DLY - Even after closing, access path
info recorded and reactivated again.
(iii) *REBLD - Details from *DLY used to
rebuild the acess path.
OPEN data path is the path which can be used by all the
files in a PGM, Open data path is like a
bridge between file and Program.
This is the attribute of file which we specify when compile
the source this will ensure whether file will use ODP in
the program or will create seprate.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer



More RPG400 Interview Questions

How to get only unique records from a file which contains duplicate data using CPYF command ? Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...

1 Answers  


Can we journel logical file and access path? Can we use commitment control for non-join L.F?

4 Answers  


1.what are the ARITHMETIC EXPRESSIONS IN CL PGM? 2.How to PASSING PARAMETER TO CL PGM?

1 Answers   NetCracker,


what is estimation? and what is the level identifier parameter in PF?

3 Answers   TCS,


Hello, I want to extend a length of field in my Display file(Subfile). Please suggest the possible steps. Thanks

3 Answers  






how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.

3 Answers   Wipro, iGate,


what is the equivalent keyword for CHAIN opcode ??

7 Answers   TCS,


WHERE DO WE USE COMIT KEYWORD IN AN RPG PROGRAM? YOU MADE SOME CHANGES TO DATABASE BUT YOU DON'T WANT TO SAVE THOSE CHANGES NOW? HOW DO YOU HANDLE THIS ONE?

2 Answers  


wat is scan and check ? give me real time scenarios where we used these keywords in ur projects?

2 Answers   Four soft,


Delete FileName at first statement in RPG.

0 Answers  


Job is in MSGW while reading the input file and writing a new record / updating a reacod due to Duplicate data error. What action would you take ( C D I R )...?

4 Answers  


I want to declare the number of elements of an array dynamically in RPGLE ? Is it possible? If yes, then how do I do it ?

2 Answers  






Categories