INF: COMTI Sample COBOL Programs for TCP/IP Can Write Log Data to Record Debugging InformationID: Q235275
|
Cicscs.cbl, Imsexpl.cbl, and Mscmtics.cbl comprise a set of sample COBOL programs supplied with COM Transaction Integrator for CICS and IMS (COMTI). By default, they are found in the following directory:
...\Program Files\SNA\Comti\SampleCode\ProgrammingSpecifics\TCPThere is one additional sample in that directory, Imsimpl.cbl, to which this article does not apply.
For the CICS programs, Cicscs.cbl and Mscmtics.cbl, when logging is enabled, data is written to the standard IBM Customer Information Control System (CICS) Transient Data queue named CSMT. The CICS task number is logged in addition to the status or error information.
For the IMS program, Imsexpl.cbl, when logging is enabled, the status or error information is written to the Job Entry Subsystem (JES) log of the Information Management System (IMS) Message Processing Region (MPR) in which the program executes.
To enable logging, change the source code to initialize the ENABLE-LOGGING variable to 'Y' instead of 'N'. Find the line
01 ENABLE-LOGGING PIC X VALUE 'N'and change it to
01 ENABLE-LOGGING PIC X VALUE 'Y'Then compile and link the program.
Additional query words:
Keywords : sna4sp2
Version : WINDOWS:4.0 SP2,4.0SP2
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: June 24, 1999