COBOL Manual for TNS and TNS/R Programs

Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs522555-006
13-103
CREATEPROCESS
Normally, if NEWPROCESS reports a class one error, undefined externals, the
new process stops. An application can force new process creation by adding 8 to
the normal option value (8 instead of 0, 9 instead of 1, …, 11 instead of 3).
CREATEPROCESS returns the class one error result even though the new
process is created. The value 8 indicates the undefined externals are not
considered an error.
priority
is the NEWPROCESS priority parameter. Priority can be either a DISPLAY or
COMPUTATIONAL numeric data item, a numeric literal, or an expression enclosed
in parentheses. Its value is passed to NEWPROCESS. If its value is 0,
NEWPROCESS assigns the new process the same priority as that of the creator
process. The first bit of the priority parameter is used to signal that the new
process is to start in debug mode.
The priority parameter can be omitted by supplying the keyword OMITTED.
OMITTED implies a 0 priority value. Example:
77 PRIORITY PIC S9999 COMPUTATIONAL.
processor
is the NEWPROCESS processor parameter. processor can be a DISPLAY or
COMPUTATIONAL numeric data item, a numeric literal, or an expression enclosed
in parentheses. A nonnegative value is passed to NEWPROCESS. A negative
value is replaced by the processor value of the creator process, so the new
process executes in the same processor as the creator process.
processor can be omitted by supplying the keyword OMITTED. OMITTED
implies a value of -1. Example:
02 PROCESSOR PIC S9999 COMPUTATIONAL.
memory
is the NEWPROCESS memory parameter. memory can be a DISPLAY or
COMPUTATIONAL numeric data item, a numeric literal, or an expression enclosed
in parentheses. Its value is passed to NEWPROCESS. If 0, NEWPROCESS
assigns the number of memory pages indicated by the new process. memory can
be omitted by supplying the keyword OMITTED. OMITTED implies a value of 0.
Example:
06 MEMORY-PAGES PIC 9999 COMPUTATIONAL.