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 / vivek
USING MEMBER MAPPING IN LF THEN THIS LF USE IN RPG PROGRAM.
LET SEE,
PF@1 CONTAIN 3 MEMBER LIKE M1,M2,M3 AND FIELDS OF
NAME AND ID
LF@1
R R1 PFILE(PF@1)
K NAME
AFTER THAT LF USE IN RPG PROGRAM. TRy now.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
which are the relational operators in rpg?
what are the limitations of cl (compare to rpg) ?
how can you execute a command from within an rpg program without calling a clp program?
How to reverse a string using RPG?
define the rcvf command?
Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)
why is the declare cursor statement is used for?
What is compiler directive in as400? Give example of compiler directive.?
what is the use of dspatr(mdt) keyword?
define what a data queue is along with a brief example of what it may be used for?
What is RETURN CURSER LOCATION in subfile?
using dfu, user will be able to ___________ from physical file?
list some of the commonly used commands for debugging?
How to convert a spool file to PDF file in AS400?
What Does Lokup Does In Tables & Arrays?