/LOG command
The /LOG command writes a single-segment message to the IMS™ system log. Any text can be logged, including transaction codes or command streams.
Subsections:
Environment
The following table lists the environments (DB/DC, DBCTL, and DCCTL) from which the command can be issued.
Command | DB/DC | DBCTL | DCCTL |
---|---|---|---|
/LOG | X | X | X |
Keywords
The following keywords are valid for the /LOG command:
- text
- An alphanumeric character message to be logged.
Usage notes
An X'02' log record is produced and contains the text. This command applies only to the currently entered message segment and does not establish a continuing operational mode.
This command can be issued to an IMSplex using the Batch SPOC utility.
Example
Entry ET:
/LOG TODAY IS MONDAY
Response
ET:
DFS058I LOG COMMAND COMPLETED
Explanation:
An X'02' log record containing the text
TODAY IS MONDAY
is written to the IMS system
log.