ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Can we get the RRN in RPGLE PGM??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can we get the RRN in RPGLE PGM??

    Hello Everybody

    Can any one of u tell me that how to get Relative Record Number of a particular field, in a rpgle pgm.

    I am reading a PF in my PGm and then i had to use chain to go back to certain position and read again. So how can i determine the RRN while i make a READ.

    Thanks

  • #2
    Getting RRN from a file

    You must attach a data structure to the file.

    Code:
    fLOCKFILE  UF   E             DISK    INFDS(INFDS)

    and look here for the wealth of information available



    Now the RRN number would only help if you were reading a physical file that is not keyed.

    If the file is keyed you really should use keylist.


    good luck

    jimmy

    Comment

    Working...
    X