Use the PDSIO interface to run an IMOD synchronously and return data from the IMOD to the calling program
search cancel

Use the PDSIO interface to run an IMOD synchronously and return data from the IMOD to the calling program

book

Article ID: 53472

calendar_today

Updated On:

Products

FAQS - Automated Systems Operation

Issue/Introduction

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.

 

Resolution

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'