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



what is code for reading member in rpgle when wehave like extmbr(*all) so we have 3 members i..

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

what is code for reading member in rpgle when wehave like extmbr(*all) so we have 3 members i..

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

Post New Answer

More IBM AS400 AllOther Interview Questions

what is the purpose of dynslt keyword?

1 Answers   IBM,


What is the use purpose of CRTCMD?

1 Answers  


What Is Default Data Type (if You Define Decimals '0') In Physical File?

1 Answers   IBM,


when are the referential constraints executed?

0 Answers   IBM,


when is a tag statement used in rpg?

2 Answers   IBM,






pf named karthik 3members jan feb mar cmd must executed create mbr ar ap

0 Answers  


In AS/400 projects in Companies whats the meaning of production support team.what production support involves.also what work does development,maintenance involve what are the other teams or processes that are available for as400 project.

0 Answers   Adverb Solutions, CSC,


what is the purpose of DMPCLPGM IN CL?

3 Answers   IBM, Wipro,


whare we can use IN AND OUT AND UNLCK opcodes?please can any body tell me in real time senario with example

2 Answers  


Suppose we have field reference file we were any changes that corresponding Physical file then what will Happen in field reference file??

5 Answers   IBM,


Can an indexed file be accessed in arrival seQuence in RPG program ?

1 Answers  


How do you read a subfile record which is in output mode?

3 Answers  


Categories