We would like to use the PDSIO interface to run an IMOD synchronously and want to know how to return data from the IMOD to the calling program.
Data can be passed to the calling program using the RETURN instruction of the REXX Procedure: RETURN 'data'
Data can only be passed when the function EXEC (Run an IMOD and return result to user) is used. While using the function IMOD (Tell FAQS ASO to run an IMOD) no ReturnCode is passed.
Note: Since this function only starts execution of the IMOD, its return code does not indicate whether the IMOD completed successfully.
JCL example:
/* rexxsmp */ /* your code */ RETURN 'it ran'