Returning information from multiple exit routines

On the CALL and RECOVER requests, CSVDYNEX provides a return area for the caller to receive information relating to successful and unsuccessful processing of one or more exit routines. As it processes an exit, the system places information (called return information) in that return area. Before you issue the CALL request, you obtain the storage for the return area; on both the CALL and RECOVER requests, you specify its address on the RETAREA parameter and its length on the RETLEN parameter. The following illustration shows the return information from two exit routines associated with EX1, where the CALL specified RETINFO=ALL.
ieaa8rae

For description of CSVEXRET, see z/OS MVS Data Areas in the z/OS Internet library.

The caller might not want to receive all the return information from all the exit routines. The RETINFO parameter on the CALL request tells the system which information the caller should receive. If the caller wants the system to receive return information from only one of the potentially many exit routines, the DEFINE request with RCFROM, RCTO, RCCOMPARE, and RCCVAL parameters can specify how the system is to choose which return information to return. The process of choosing involves merging return codes.

On the CALL request, you choose which return information the system places in the return area: