DEFINE PROCESSGROUP command: TPROCESS

From m204wiki
Revision as of 01:04, 28 February 2013 by Alex (talk | contribs) (Automatically generated page update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Summary

Privileges
User 0 or system manager
Function
Function

Syntax

DEFINE PROCESSGROUP name [LIKE previousname] WITH SCOPE=SYSTEM LINK=linkname TERMINAL={LOCAL | REMOTE}

Where:

name is used on DEFINE PROCESS commands to refer to this group of processes. The length of the name must be 1 to 8 characters. ALL is a reserved word and cannot be used.
LIKE gives the current link the attributes of the link entity referred to by previousname.
SCOPE=SYSTEM indicates that the definition is available to all users of the Model 204 system for the entire run.
LINK is used to associate the processgroup with a particular link. The linkname value must be the same as the link name specified on the DEFINE LINK command.
TERMINAL defines the ownership of the terminal.

During a conversation between a User Language request and a partner process, it is necessary to define ownership of the terminal. Acceptable values are:

LOCAL specifies that the User Language request is the owner and can read and write to the terminal at any time. The remote partner process must not read or write to the terminal unless both processes have been designed for this. If the terminal is shared, both the request and the partner process must be responsible for maintaining the integrity of the terminal display.
REMOTE specifies that the remote partner process is designated the owner; the User Language request cannot read or write to the terminal during the time that the conversation is open (after an OPEN PROCESS but before a CLOSE PROCESS). The request is canceled if a read or a write is performed directly (for example, through a PRINT or a $READ statement). However, system-generated messages such as a BROADCAST message is discarded without affecting the request.