Selecting particular record from SRC-PF

5 pts.
Tags:
RPG
RPG IV
Hi,
How do I get/select particular record from a src-pf to update as for requirement?
1

Answer Wiki

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

SRC-PF files have no “KEY” but you csn select by the relative record number of the record you need. You might select the record by the text or data in the found in it or by adjacent record data.

Discuss This Question: 3  Replies

 
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.
  • ToddN2000
    Source PF contain code. These are usually edited using a source ode editor like SEQ, Websphere or some other. Trying to change code outside of these methods is not advisable. Unless you have some specific need we do not understand. If so explain the details of avoiding an editor application.
    133,595 pointsBadges:
    report
  • Splat
    It depends on what you're trying to achieve & your selection criteria. As ToddN2000 noted, more information would be useful.
    12,895 pointsBadges:
    report
  • GregManzo
    I assume you want to avoid an editor in order to mechanise updating many src members.
    We have a src commenter (to enforce standards) that reads the src member sequentially, and writes it out to a QTEMP copy making changes & inserting lines as it goes, then last thing it does a copy *replace back to the original member. This is necessary to insert extra lines at the correct point in a sequential (non-keyed) member.
    If you only need to UPDATE a line in its current place then you could chain using RRN or use sequential reads until you find the required line of code, then update that record. It's more about how you intend to identify the line of code you want to change.
    2,960 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.

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

Following

Share this item with your network: