COBOL Manual for TNS and TNS/R Programs

Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs522555-006
13-104
CREATEPROCESS
process-id
is a numeric data item to be assigned the process identification of the new
process. The process-id data item must be COMPUTATIONAL or NATIVE-8
and described with 10 through 18 nines.
process-id can be omitted by supplying the keyword OMITTED instead of a
numeric data item. OMITTED indicates that no process identification is returned.
Example:
08 PROCESS-ID PIC S9(18) COMPUTATIONAL.
result
is a DISPLAY or COMPUTATIONAL numeric data item assigned the result
returned by CREATEPROCESS. Example:
11 RESULT PIC S9999 COMPUTATIONAL.
CREATEPROCESS returns an integer value that indicates whether the new process
creation completed or failed. The integer values and their meanings are:
Value Meaning
0 Process creation completed successfully
1 Required parameter missing or illegal
2 Illegal loadfile name
3 Infile name, outfile name, or default volume name cannot be converted
to network form
10 through 255 A file management error value that CREATEPROCESS received in
attempting to transmit the startup message to the new process
Greater than 255 A value greater than 255 is an error value returned from
NEWPROCESS (see the information on process control in the
Guardian Programmer’s Guide)