COBOL Manual for TNS and TNS/R Programs

Issues Related to Binding and Linking
HP COBOL Manual for TNS and TNS/R Programs522555-006
24-19
Separate Processes
Separate Processes
You can break a batch program into a requester and one or more servers. In a
Pathway environment, servers can have their own servers. A Pathway server can
create another process and communicate with it through a READ statement with a
PROMPT phrase (an HP COBOL extension).
For information about COBOL85 requester-server pairs, see Simple Server Example.
TNS User Library
If your program does not fit in user code space, you can put some of the routines in the
TNS user library. The routines will then execute in an additional code space called user
library space. User library space consists of one or more (a maximum of 16) separate
user library code segments of 128 KB each.
The system loader resolves references to routines in user library space at fixup. To
enable the system loader to fix up references to routines in user library space, you
must provide the name of the user library file (see Fixup).
Topics:
Routines That Can Be Placed in the TNS User Library
Best Candidates for the TNS User Library
Putting Routines in the TNS User Library
Routines That Can Be Placed in the TNS User Library
The language in which a routine is written determines whether you can place it in the
TNS user library (whether it can execute in user library space):
Language in
Which Routine
is Written
Routine Can Be Placed in the TNS User Library
(Routine Executes in TNS User Library Space)
HP COBOL Yes, if the ENV LIBRARY directive is specified
HP C Yes, if the ENV LIBRARY pragma is specified
FORTRAN Yes, but then it cannot have any COMMON, DATA, or SAVE statements
Pascal No
TAL Yes, if no global blocks are defined