With this method, your application may initiate:
If you want to develop a menu driver or initiate a DBOC command, use a CICS XCTL to DCCOCPR with a communication area completed as described here. For DBEC, XCTL to DCCECPR.
Procedure for DBOC or DBEC Commands
The communication area (DFHCOMMAREA) must be at least 80 bytes in length.
Procedure for DBUG Command
The communication area (DFHCOMMAREA) must be at least 80 bytes in length.
Procedure for DBTS
The communication area (DFHCOMMAREA) must be at least 80 bytes in length.
Example
DFHCOMMAREA
----+----1----+----2----+----3----+----4----+----5 . . . +----8 DBOC RESTART=???? (for example) or DBTS or DBUG or DBUG BOTH (for example) or DBEC P,MSIDNAME(DBSIDPR),DISCONNECT,SYSID(CZDS) (for example)
Sample COBOL Program
The following sample program demonstrates how to address and format the DFHCOMMAREA to command CA Datacom CICS Services to open URTs or to initiate the DBUG or DBTS facility.
IDENTIFICATION DIVISION. .. ENVIRONMENT DIVISION. DATA DIVISION. WORKING-STORAGE SECTION. .. 01 COMM-AREA. 02 COMM-AREA-ID PIC X(05) VALUE 'DBOC '. 02 COMM-AREA-COMMAND PIC X(75) VALUE SPACES. 02 COMM-AREA-RTNCDE PIC X(02) VALUE SPACES. .. .. PROCEDURE DIVISION. .. .. MOVE 'OPEN=0001' TO COMM-AREA-COMMAND. EXEC CICS XCTL PROGRAM('DCCOCPR') COMMAREA(COMM-AREA) LENGTH(82) END-EXEC. .. .. .. END-PGM. ..
Copyright © 2015 CA Technologies.
All rights reserved.
|
|