z/OS Communications Server: IP IMS Sockets Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Implicit-mode server call sequence

z/OS Communications Server: IP IMS Sockets Guide
SC27-3653-00

When writing an implicit-mode program, you must call the IMS™ Assist module (CBLADLI, PLIADLI, ASMADLI, CADLI, as appropriate for the language you are using) instead of the conventional IMS equivalent (CBLTDLI, PLITDLI, ASMTDLI, CTDLI). This will cause the I/O PCB calls to be intercepted and processed (if necessary) by the Assist module. The Assist module will pass database calls directly to IMS for processing; it will intercept I/O PCB calls and issue the appropriate sockets calls. A sample call sequence (using COBOL syntax) for an implicit-mode server follows:

IMS Server Call
Resulting Assist Module Function
CALL CBLADLI (GU) I/O PCB
Issue CALL CBLTDLI (GU) to obtain the (TIM).
CALL CBLADLI (GN) I/O PCB
(optional) Issue CALL CBLTDLI (GN), which returns a subsequent segment of client input data for each call.
CALL CBLADLI
Read/write database records. 1
CALL CBLADLI (ISRT) I/O PCB
Store segments in the sockets output buffer.
CALL CBLADLI (GU) I/O PCB
Issue WRITE to empty output buffers.
1 Database PCB and I/O PCB calls can be intermixed.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014