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
how many types of display are available on as/400 for user interaction?
What is a query can be displayed without saving it?
What are the record format field mapping options in cpyf?
what does opcode post do ?
what are the different opcodes available in rpg for database access ?
what opcode will be used to test the zone of a character field?
how does the runqry show the output?
how to develop some simple graphs (bar charts) using just html?
how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?
how can you check for a records existence without causing and i/o (chain/read)?
how can u check no of records in a file?
I need to insert a record in a file using STRSQL containing the some field values same as an already existing record in that file.I know to smple insert mentioning those values one by one.But is there any another query can be prepared for the same .Please share the query if known to you. Thanks in advance.
what is elastic and non elastic subrile?
How to Define a Procedure in RPG?
how to write code for singlepage in sqlrpgle with update ?