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 |
In 'o' Specs What Is The Opcode For Write?
What command must be executed before executing OPNQRYF command?
what is RCLRSC?
how can a procedure will be added in to a srvpgm
what are the three types of keywords associated with printer file ?
what is the function of rlu ?
What is dynslt?
difference between sflrcdnbr and sflnxtchg?
Q. 1.What are the in build functions in CL program and what are uses of thes in build functions? 2.How we can create own command in CL program? 3.What is use of STRSRVJOB?
what the purpose of ovrdta, ovrata keywords?
How to see all members of a file?
In there is 100 no. of recordsin PF, if i delete all the records. Then what is the Size of the PF?