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
how does the runqry show the output?
What Is The Difference Between Goto & Exsr?
how can you specify no duplicate key?
what is service program?
the maximum number of subfiles that can defined in a rpg program for one display file is ___ .
in conjunction with which statements can orxx and andxx conditions be used ?
What is the difference between non-join logical files and join logical files?
In Which Specs Arrays, Tables & Constants Are Defined?
how may a cgi control duplicate inputs?
what is rpg ?
what is the use of jdftval in join logical file?
which are the figurative constants used in rpg?
what does opcode post do ?
how many maximum spaces could be given in o specs?
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)