Determining the success of SQLIMS statements
When IMS finishes
running an SQLIMS
statement, IMS sends a return code in the SQLIMSCA
structure to indicate whether the operation succeeded or failed. In
your program, test the return code and take any necessary action.
About this task
After execution of SQLIMS
statements,
the content of the RETURN-CODE
special register might
not be valid. Therefore, even if a program terminates normally after
successfully using SQLIMS
statements, the job step
might end with an undefined return code. To ensure that a meaningful
return code is given at termination, set the RETURN-CODE
special
register before you end the program.
Related tasks
IMS Application Programming Guide
IMS Application Programming Guide