Chapter 3. CICS data 117
them). In this IBM Redbooks publication, we do not get in depth about the DB2
attachment facility and how it works; however, here is an example of how CICS
and DB2 process an application program issuing its first SQL request:
1. A language interface, or stub, DSNCLI, that is link-edited with the application
program calls the CICS resource manager interface (RMI).
2. The RMI processes the request, and passes control to the CICS DB2
attachment facility's task-related user exit (TRUE), the module that invokes
DB2 for each task.
3. The CICS DB2 attachment facility schedules a thread for the transaction. At
this stage, DB2 checks authorization, and locates the correct application plan.
4. DB2 takes control, and the CICS DB ...