what is code for reading member in rpgle when wehave
like extmbr(*all)
so we have 3 members in *all then i want to read first
record in 2member
Answer Posted / svankipu
Use OVRDBF & replace the member(MBR(*FIRST)) with second
member's name.
Now call the RPG pgm to read the second(2nd) member.
- OR -
If u r already in RPG pgm, use QCMDEXC for overriding the
member with 2nd mbr & continue.
- OR -
If it permits use EXTMBR(2nd mbr-name) instead of EXTMBR(*ALL)
| Is This Answer Correct ? | 16 Yes | 0 No |
Post New Answer View All Answers
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)
what is the difference between packed decimal and zoned decimal?
how do you specify page overflow indicator for printer files in rpg?
when should I use method get, and when should I use method post in my cgis?
Difference Between Source Physical File & Physical File?
what is rpg fixed logic cycle?
what is the use of unique keyword and what level it is defined?
What Is The Purpose Of The "n" In The Following Calculation Specification?
if we tried to move year part of *iso date into a field of length 3, what will happen ?
In 'o' Specs What Is The Opcode For Write?
can you specify a display file to be used in the following modes input,output, or combined modes ?
What is a query can be displayed without saving it?
what is the use of sflend keyword?
what opcode will be used to test the zone of a character field?
what are the different commands used in rlu ?