NET/MASTER Network Control Language (NCL) Programmer's Guide

Starting a Single Debug Session
Debugging an NCL Process
106160 Tandem Computers Incorporated 9–29
5. Use the SUBMIT command to send commands for execution in the background
processing environment of the virtual user:
For example, use the SHOW NCL command to determine the NCL IDs of NCL
processes that are currently executing in the environment owned by BMON:
SUBMIT BMON SHOW NCL
Use the START command to submit an NCL procedure for execution in the
environment owned by BMON:
SUBMIT BMON START ZEX0903N
Refer to the NonStop NET/MASTER MS Command Reference Manual for the syntax
of the SUBMIT command.
6. Use the DEBUG SET ID=ncl-id command or another DEBUG command that
specifies an NCL ID to set the current NCL process.
You can subsequently use other DEBUG commands to debug this NCL process. You
can switch from this NCL process to any other targeted NCL process as required by
specifying a new NCL ID.
The following screen shows the steps you could use to start a debug session in the
environment owned by BMON:
(07:16) --------------------- OPERATOR CONTROL SERVICES ----------------------
PROFILE UNSOL=YES MONMSG=YES EMS=YES MSG=YES
NNM0357 PROFILE HAS CHANGED
SHOW USERS=*BMON
NNM0656 USERID TERMINAL TYPE PHYSICAL NAME PROCESS
NNM0657 -------- -------- ---- --------------------
NNM0658 SDPLBMON BG-MON BMON $I001
NNM0660 1 MATCHING USERS LOGGED ON
SHOW FILEINFO=$DATA.BMONLIB.ZEX0903N
NNM0609 Filename Code EOF Last Modification Owner RWEP
NNM0610 ZEX0903N 101 66 18-FEB-1992 11:55:53 100,21 NCNC
NNM0612 Total 1 files matching $DATA.BMONLIB.ZEX0903N
NNM0999 *END*
DEBUG START USER=SYS1BMON
NNM1948 NEW NCL WILL BE SUSPENDED IN WINDOW 0
SUBMIT BMON START ZEX0903N
NNM1302 COMMAND SUBMITTED TO BMON REGION
07:15:55 M START ZEX0903N
NNM1901 NCL 003029 DEBUG SESSION INITIATED
NNM1902 NCL 003029 SUSPENDED AT ZEX0903N.1 LINE 1
DEBUG STEP
NNM1902 NCL 003029 SUSPENDED AT ZEX0903N.2 LINE 2
---------- ------------------ NonStop NET/MASTER D30 ----------------
M=>
In this example, the PROFILE command ensures that you can receive unsolicited
messages. The SHOW USERS command displays the user ID of BMON. The SHOW
FILEINFO command confirms that the ZEX0903N NCL procedure exists in the user
procedure library of BMON. The DEBUG START command starts a debug session for
BMON. The SUBMIT command starts the ZEX0903N NCL procedure in the BMON