I am trying to replace subroutine &local procedure in my RPGLE program to create a module. In my RPGLE I have a subroutine and use a local procedure to return the value
of AgentNmber(AGENOQ). I wrote a module to combine both subroutine and local procedure into one and trying to return same agent no. I get the error
"the type of factor 2 is not the same as as the type of return value of procedure"" in the code (return AgentNOQ ; ) . Please help to correct the error.
// local procedure newAgentNumber allocates the next Agent
This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact