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
Difference Between Call & Sbmjob?
what are the different types of variables available in cl?
what is logical file?
what is the maximum number of subroutines allowed in rpg?
how to develop some simple graphs (bar charts) using just html?
what is the use of unique keyword and what level it is defined?
what are the different methods to access seu?
define what a data queue is along with a brief example of what it may be used for?
Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?
The content of Physical file is as below: hfcftp wruquief SENDPASV 0 CDUP ASCII GET 01100901.CSV ramndk/ECP505.EC0110090 (REPLACE QUIT Thw above commands will get executed when we call STRTCPFTP from CL program.... Now if I want to use SFTP what can be the solution? plz reply in detail....Thank you for ny help... I m using RPG/ILERPG to download...
if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?
what is the purpose of ovrdta (override data) keyword?
how does union file maintains record formats?
What is binder language ?
WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)