In your module you've defined it to return an indicator...
From: murali dhar <hydchap1@xxxxxxxxx>
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>,
Date: 04/02/2012 08:30 AM
Subject: procedure question
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
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.
My RPGLE:
begsr
@NewAgentNo;
// local procedure newAgentNumber allocates the next Agent
This mailing list archive is Copyright 1997-2026 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
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.