Announcement

Collapse
No announcement yet.

Chaining with Free

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

  • Chaining with Free

    I think I am missing something.

    I am using

    Code:
    /FREE
    
                CHAIN (Var1 : Var2 : Var3)  PhysicalFile
    /END-FREE
                 IF %FOUND 
    
                 ....
    to chain and am getting a domain/pointer error.

    I was using an example found at http://www.itjungle.com/mpo/mpo022703-story04.html

    Perhaps misleading?

    Thanks for the help.

    -Kris

  • #2
    Re: Chaining with Free

    Hi Kris:

    That code looks OK.

    Why are you jumping out of free to test %found?

    I prefer "if %found(physicalfile)" to be sure I'm not testing another found condition.

    What is the error number you are getting?

    I would start by putting the pgm in debug and validating var1/2/3 contain valid data.

    Best of Luck
    GLS
    The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

    Comment


    • #3
      Re: Chaining with Free

      Thank you for your quick repsonse.

      i've been programming in RPG for a month... and made a rookie mistake.

      The pointer/domain error was because I was requesting to receive 3 variables from the program call and was only sending one.


      Thank you though!

      -Kris

      Comment

      Working...
      X