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 |
how can see logical file based on which physical file and vice versa
what are the different opcodes available in rpg for database access ?
what is lokup opcode?
in conjunction with which statements can orxx and andxx conditions be used ?
what is the favicon.ico request that my site receives now and then?
Write a logic program for knowing the repeated number of a vowels in a given program?
What is the function of RJE Conversion Utility?
which of the cl command can be used to determine which logical files are dependent on a specific file?
what is the main use of OPNQRYF ?? in that query why we can use OVERDBF and in that OVERDBY why should we use SHARE(*YES)
Can anybody know what is Pick/Basic? Is it a programming language? can it be used in AS400 machine?
what is meant by object lock requests,held locks and locks waiting to be applied(wrkobjlck) why should we apply for locks.Please explain sir.
what keyword must be used with protect keyword ?