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 ?    15 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 message subfile?

1 Answers   IBM,


What is the purpose of Level Check parameter in a Physical file?

1 Answers  


I have 1 rd in my flat file. say reord from 1 to 10 position : 'AS400NDB2400' I need to change the value from N to Y using SQL stmt ...How can I update this....?

5 Answers  


What is library list ?

1 Answers  


if we tried to move year part of *iso date into a field of length 3, what will happen ?

0 Answers   IBM,






what if my system I runs with system value qccsid 65535?

0 Answers   IBM,


what does vldcmdkey means?

0 Answers   IBM,


What is the maximum number of elements in an array?

1 Answers  


what are the different types of variables available in cl?

1 Answers   IBM,


what are dds required for subfile?

0 Answers   IBM,


what is message file?

0 Answers   IBM,


what opcode could be used to test an alphanumeric field for all numeric values?

1 Answers   IBM,


Categories