Redirecting Console Messages Using the STDEBUG Command

You can use the USERID option on the STDEBUG command to direct the console messages to a user ID different from the user ID executing the application being traced. This can be useful when you have a second user ID and console. You can direct the messages to the second user ID and view them on console of that user ID. This leaves the console of the primary user ID, running the application, free for interaction. A STDEBUG trace can generate hundreds of messages when numerous calls are being made to storage management while the trace is active. When these messages become outstanding, waiting to be displayed on the console, it is often difficult to use PA1 or #CP to interrupt the program.

You can also use the USERID option to debug an application in a disconnected server machine. You can enable the storage management trace in the server machine using STDEBUG. The server machine can then direct the messages to an interactive user ID that can view the trace messages issued by the server.