updating pf using simple rpg/400 code.

1520 pts.
Tags:
CHAIN
PF/LF
RPG
SETLL
How can i update a pf using simple rpg code.and please also explain with examples use of setll, chain, setgt, Readc and sflnxtchg?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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 <a href=”http://publib.boulder.ibm.com/infocenter/systems/scope/i5os/index.jsp?topic=/rzasd/sc09250802.htm&tocNode=int_212905″>ILE RPG Reference</a> or in the <a href=”http://publib.boulder.ibm.com/infocenter/systems/scope/i5os/index.jsp?topic=/rzasc/sc09250702.htm&tocNode=int_212907″>ILE RPG programmers guide</a>

Regards,

Martin Gilbert.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gilly400
    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.
    23,730 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following