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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / adhar246
First do *HIVAL SSETGT on the file. It will set the pointer after the last record of first member. than do simple read operation. it will start reading from first record of second member.
| Is This Answer Correct ? | 3 Yes | 5 No |
what is the favicon.ico request that my site receives now and then?
What is RETURN CURSER LOCATION in subfile?
What is class of service ?
How do you combine two record formats in RLU ?
how to run other job when one job is active?
write a pgm to read p.f using cl pgm?
Hi friends.. i want to be a IBM MainFrame Professional.. can any body tell me what is requirement for that... i m just BA, MA, and have simple diploma in Computers. what is pre-requisite.
some special characters I key in my html source members show different on my web pages. Why? How can I solve this?
Why we are not able to perform insert delete and update operation in Join logical file?
Can you use multi format LF in CL program?
how you get the relative record in a subfile in which cursor is located?
what is the purpose of DMPCLPGM IN CL?