Question

  Asked: Mar 27 2008   7:13 AM GMT
  Asked by: Pradeepr


How to read records in all of the members of a single pf?


AS/400, RPGLE, RPG IV, RPGILE

I have a file name file1. it has 30 members. i have a input value from a display file and i need to check it in all the members. If it match i write the record in file2. How to read records in all members of a single pf?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
+2
Click to Vote:
  •   2
  •  0




Hi,

You should be able to use OVRDBF to access all members in a PF.

OVRDBF FILE(FILE1) MBR(*ALL)

When you run your program you may see informational messages in your joblog indicating which member is being read.

Regards,

Martin Gilbert.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register