Plex 2E

  • 1.  using array as an output parameter

    Posted May 31, 2018 03:55 AM

    Hello,

    A few days ago i asked about processing array that was defined as an Input Parameter. I got a useful answer from this helpful community. Thanks!

    Now, same question but for array the need to be sent as an output parameter.

    We have Internal array (*array) that contains several records.

    We need to transfer its records to an output array? We did not find a solution with the "*move array" function.

    Is there a simple way to do it?

     

    Regards,

    Yehuda

     



  • 2.  Re: using array as an output parameter

    Posted Jun 18, 2018 08:29 PM

    The *MOVE ARRAY would be useful if you are consuming a Web Service.

     

    We have done what you want with SQL and result sets for SQLRPG.

     

    Where YMxx is the array in your function....  Set YL01 to the size.

     

    We used this approach for Stored Procedures.

    Lee.