Distributed Systems Network Management (DSNM) Subsystem Interface Development Guide
I Process Development Process
Distributed Systems Network Management (DSNM) Subsystem Interface Development
Guide—109759 3-9
The Command Thread Source Environment
The Command Thread Source Environment
The source environment in which the command thread is written consists of source
definitions (DDL, literals, and defines), global definitions, and external declarations.
You must include the following ?SOURCE statements in your program:
?SOURCE KDSNDEFS (IPROCESS^DEFINITIONS)
?SOURCE KDSNDEFS (IPROCESS^GLOBALS)
?SOURCE KDSNDEFS (IPROCESS^EXTDECS)
Your program source file should be arranged as follows:
? < User compiler directives >
?SOURCE KDSNDEFS (IPROCESS^DEFINITIONS)
< User-defined I-process globals >
The following templates should be defined:
BLOCK PRIVATE;
STRUCT in^lm^def (*);
BEGIN ! Input list member definition
_INPUT^LM^HEADER;
< User-defined input list member fields for work space,
if any >
END;
STRUCT out^lm^def (*);
BEGIN ! Output list member definition
_OUTPUT^LM^HEADER;
< User-defined output list member fields for work space,
if any >
END;
STRUCT cx^def (*);
BEGIN ! Command context definition
_COMMAND^CONTEXT^HEADER;
INT .EXT inobj (in^lm^def);
INT .EXT outobj (out^lm^def);
< User-defined context fields >
END;
INT .EXT ci^config (_CI^DEF);
INT .EXT ss^config (_SUBSYS^DEF);
Note. Because they are shared by all currently active threads, global definitions must be read-
only after initialization.