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
give three main purposes of file specification ?
Difference Between Call & Sbmjob?
what are all the contents of subfile?
can we use ASCII ,CDUP,SENDPASV commands in SFTP?
How can we update a specific field in RPG?
Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?
what is the favicon.ico request that my site receives now and then?
how to develop some simple graphs (bar charts) using just html?
What is the Difference between command attention key and command function key ?
list some of the commonly used commands for debugging?
the maximum number of subfiles that can be active for a single file is ____ .
what if my system I runs with system value qccsid 65535?
What is the difference between physical file and logical file?
how can you execute a command from within an rpg program without calling a clp program?
what is the maximum number of subroutines allowed in rpg?