Destinations for command output messages

In most cases, Db2 command response are sent to the entering terminal or, for batch jobs, to the printed listing. In CICS®, you can direct command responses to another terminal.

Begin general-use programming interface information.Name the other terminal as the destination (dest) in this command:

DSNC dest -START DATABASE

If a Db2 command is entered from an IMS or CICS terminal, the response messages can be directed to different terminals. If the response includes more than one message, the following cases are possible:

  • If the messages are issued in a set, the entire set of messages is sent to the IMS or CICS terminal that entered the command. For example, DISPLAY THREAD issues a set of messages.
  • If the messages are issued one after another, and not in a set, only the first message is sent to the terminal that entered the command. Subsequent messages are routed to one or more z/OS consoles using the WTO function. For example, START DATABASE issues several messages one after another.

    You can choose alternative consoles to receive the subsequent messages by assigning them the routing codes that are placed in the DSNZPxxx module when Db2 is installed. If you want to have all of the messages available to the person who sent the command, route the output to a console near the IMS or CICS master terminal operator (MTO).

For APF-authorized programs that run in batch jobs, command responses are returned to the master console and to the system log if hardcopy logging is available. Hardcopy logging is controlled by the z/OS system command VARY. End general-use programming interface information.