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 purpose of the following C/COPY QRPGSRC, ORDERR
what is a keyed physical file?
To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?
How to debug a batch job when it is in messagewait(mswg) status. I know the steps for batch ebugging, but im confusing with when we submit any job for batch debug we put in held state. So here also do same thing or any other way?
What is the symbol used for shifting fields in SDA?
how can database records be read without lock ?
What Does Lokup Does In Tables & Arrays?
What does the keyword UNIQUE mean ?
What is the Function of PDM?
How to trap errors in CL?
how can send report to user through cl program in as400
What is library is as400? What are the types of library?