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 ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is sflrolval?

644


what is a join logical file?

751


what is the favicon.ico request that my site receives now and then?

627


how can database records be read without lock ?

1209


hi guys i am new for sqlrpgle, please suggest me good websites and theory and coding. plz plz its very urgent.

2123






What is file access opcodes?

752


how can you detect and handle a record lock situation?

1210


how many printer files can be defined in f specs ?

957


What is the draw back of Procedures? why we are going to Modules?

1227


How to add 99 menu (page down) option in menu creation..

1921


what is a query can be run in which mode?

861


what is the syntax for plist?

640


list some of the commonly used commands for debugging?

886


how many specifications are there in rpg/400? What are they?

1086


different type of cursor?

634