ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

chaining with RRN in rpg free

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

  • chaining with RRN in rpg free

    I'm looking to chain to a file in RPG free-form using a relative-record-number as the key. Can this be done??

  • #2
    Re: chaining with RRN in rpg free

    You could try this just remove the K from the F spec.

    workRRN = 5
    Chain (WorkRRN) SomeFile;
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: chaining with RRN in rpg free

      Thanks...I will give it a try.

      Comment


      • #4
        Re: chaining with RRN in rpg free

        You must omit the () when using RRN.

        WorkRRN = 5;
        Chain WorkRRN SomeFile; // <-- this works.
        Chain (WorkRRN) SomeFile; // <-- this does not work

        Comment


        • #5
          Re: chaining with RRN in rpg free

          WOW what a blast from the past...after almost 7 years i would hope the OP has this issue resolved by now...
          I'm not anti-social, I just don't like people -Tommy Holden

          Comment

          Working...
          X