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
what is the maximum number of fields under a record format of physical file?
What is file access opcodes?
how many files, printer files you can describe in a rpg?
how can I give more performance to some selected pages?
What Is The Error If We Don't Get Login Screen?
how do you pass parameters in cl?
To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?
Why we sometimes use same file name in file and tofile in ovrdbf and sometimes different?
is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?
How to reverse the string in rpg
can you specify a display file to be used in the following modes input,output, or combined modes ?
maximum number of subfiles that can defined in a rpg program for one display file is?
different type of cursor?
what is the maximum number of subroutines allowed in rpg?
what is the difference between sflclr and sflinz?