CICS VSAM Transparency for z/OS, Version 1.2


Unsuccessful completion and return control to application

Your application may handle certain error conditions returned in VSAM. You can simulate this in an FBE by setting EXRET = P. This will result in return code = 08 being passed to your application program.

If your exit sets EXRET = P as a result of an unacceptable SQL code, it should also set the address of the SQLCA to EXSQLCA to ensure that details of the SQL error are reported. The following COBOL statement will cause CICS® VT to produce a formatted SQL error message:
SET EXSQLCA TO ADDRESS OF SQLCA.
The formatted SQL error message is written to the DD statement VIDDMP in CICS and VIDDMPD in a batch job.

No data is returned to your application program when your exit sets EXRET = P. If CICS VT tracing is active, a return code of 0020 is shown in the trace point 8 record.

CICS VT builds the RPLFDBWD, which is translated by your application program into language specific return and reason codes. EXRET=P will result in return code 08 and reason code DB in your application program.



Concept topic


Last updated: November 9, 2012 20:43:58