LOG command and call

You can use the LOG request online when you want a record to be written from an application program to the IMS log. Your program can specify whatever information you want to be on the log. You may prefer to use it instead of EXEC CICS journal commands so that all your DBCTL information will be on the IMS log instead of the CICS® log.

IMS uses different log codes to distinguish different types of log record. All user log records in the IMS log have the same code. Records logged using the LOG request will not be backed out if synchronization fails and the UOW is canceled.

Format of the LOG command

The format of the LOG command is:
EXEC DLI LOG FROM(area) LENGTH(expression)

Format of the LOG call

The format of the LOG call is as follows:
CALL 'CBLTDLI' USING LOG␢,i/o-pcb,data-area
where LOG␢ is the address of a 4-byte area that contains the value of the LOG␢ function.