CRE Programmer's Guide

Common Language Utility (CLU) Library Functions
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
9-4
Return Value
Return Value
CLU_Process_Create_ returns one of the following values:
COBOL Considerations
You can use CLU_Process_Create_ for programs that run in the CRE or in a COBOL
run-time environment. The COBOL format for invoking this function is:
TAL
Generates more efficient code.
library-reference
is as described in the COBOL Manual for TNS and TNS/R Programs, except that it
is contained in the file CLULIB (which is usually in the $SYSTEM.SYSTEM
subvolume), rather than in a COBOL85 product file such as COBOLLIB.
clu-options
is an actual parameter that evaluates to a numerica1 value appropriate for the
PROCESS_CREATE_ parameter to which it corresponds, such as a
COMPUTATIONAL, DISPLAY, or NATIVE numeric data item, a numeric literal, or
an expression enclosed in parentheses. If the parameter does not mathematically
evaluate to an integer, the compiler changes the result into an integer value.
Return
Value Meaning
-4 A file management error occurred due to failure of FILE_OPEN or WRITEREAD
[X]; the error value is returned in error_detail.
-3 A Startup message cannot be made because the IN file, OUT file, or default
volume name cannot be edited into the corresponding message field (this can
occur if the name cannot be converted to network form).
-2 An invalid parameter value.
-1 A required parameter is missing, or some internal logic error occurred.
0 The operation is successful.
> 0 An error code from PROCESS_CREATE_; the error value is returned in
error_detail.
ENTER [ TAL ] "CLU_Process_Create_"
[ OF library-reference ]
USING clu-options, program-file, library-file, swap-file,
ext-swap-file, priority, processor, processhandle,
error-detail, name-option, name, process-descr,
process-descr-bytes, nowait-tag, hometerm, memory-pages,
jobid, create-options, defines, debug-options, pfs-size
[ GIVING result ]