Suppose you have 3 members in a database file. How to read
records from all the members
Without using CL (OVRDBF) i.e. it should be handled
exclusively in an RPG program?
Answer Posted / sumit gupta
if you want to read a particular member/or all member
records in RPG program without OVRDBF in CL program. Then,
you can use EXTMBR keyword.
Declare a file in f specs and in keyword option write
1) EXTMBR(*ALL)
or
2) EXTMBR(MEMBER NAME)
Member Name must be in CAPS as if you dont put it in CAPS
then severity 30 error comes while compilation.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
when do you explicitly open files and close files in an rpg program?
What is a query can be displayed without saving it?
What is program status data structure(psds) in as400?
when would you use or not use this approach?
what the purpose of ovrdta, ovrata keywords?
what is a keyed physical file?
how to get the cursor position?
what is rpg ?
where can you specify an indicator in lokup operation?
how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?
What are the different opcodes used for file operation on a subfile in a rpg pgm?
how many types of display are available on as/400 for user interaction?
how many files, printer files you can describe in a rpg?
What is access path in as400?
difference between view and index ?