Question

  Asked: May 27 2008   4:37 AM GMT
  Asked by: 6r


updating pf using simple rpg/400 code.


PF/LF, EXCPT, CHAIN, SETLL, RPG

How can i update a pf using simple rpg code.and please also explain with examples use of setll, chain, setgt, Readc and sflnxtchg?

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
0
Click to Vote:
  •   0
  •  0



Hi,

You'll need to use SETLL and READ or CHAIN to retrieve your record and UPDAT or EXCPT to update your record. You can find more information on how to use these operation codes in the ILE RPG Reference or in the ILE RPG programmers guide

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

Gilly400  |   May 27 2008  10:32AM GMT

Hi,

By the way, the READC is used for reading records from a subfile and the SFLNXTCHG is a keyword used on a subfile to indicate that all records should be read (not just the changed records).

Regards,

Martin Gilbert.