I have a program "RPG_1", that Calls a CL_1, which calls "RPG_2".
RPG_1 may also call RPG_3
In RPG_2, the user can enter an email address, or it may be passed from RPG_1.
I want whatever email is in RPG_2 returned back to RPG_1, so it can be passed to RPG_3 and save the user having to retype the email address.
The parms are defined, and RPG_1 passes blanks or email to CL_1 and RPG_2, but is getting back a blank email. I look at RPG_2 in debug and the parm field has a value right before the RETURN statement. Do I need to code somehow to make the return from RPG_2 and CL__1 contain the email in the parm ?
NOTE, these are written in old school RPGLE. I am making minor changes to big legacy programs, so can not use things not supported in older format.
EDIT: Resolved. It was a coding error
RPG_1 may also call RPG_3
In RPG_2, the user can enter an email address, or it may be passed from RPG_1.
I want whatever email is in RPG_2 returned back to RPG_1, so it can be passed to RPG_3 and save the user having to retype the email address.
The parms are defined, and RPG_1 passes blanks or email to CL_1 and RPG_2, but is getting back a blank email. I look at RPG_2 in debug and the parm field has a value right before the RETURN statement. Do I need to code somehow to make the return from RPG_2 and CL__1 contain the email in the parm ?
NOTE, these are written in old school RPGLE. I am making minor changes to big legacy programs, so can not use things not supported in older format.
EDIT: Resolved. It was a coding error