GDSX (Extended General Device Support) Manual

Operations and Support
Extended General Device Support (GDSX) Manual529931-001
3-11
Running GDSX as a TS/MP Server
If the GDSX server is not running in NonStop mode and it fails, TS/MP
automatically restarts the GDSX server if the server is configured with the TS/MP
AUTORESTART parameter set to a value equal to or greater than 1.
A GDSX server is affected by the PATHCOM commands that deal with servers,
such as THAW and START. (The PATHCOM commands FREEZE or STOP affect
a GDSX server when only Pathway/iTS requesters have opened GDSX. If
processes outside the TS/MP or Pathway/iTS application have also opened a
GDSX server, a FREEZE or STOP command does not affect the GDSX server.)
To have a GDSX object file run as a server process, you must use a PATHCOM SET
SERVER PARAM command to set the GDSX SERVER configuration parameter to 1.
In addition, TSCODE automatically sets the value of the AUTOSTOP configuration
parameter to 1, which means that a GDSX server stops if there are no external
processes opening it.
A GDSX application configured to run as a server process can also be designed and
coded to run in NonStop mode. For this case, you still set the SERVER configuration
parameter to 1 and specify a primary and backup processor during configuration. In
addition, you must set the NONSTOP configuration parameter to 1 with a SET
SERVER PARAM command.
The following example shows the PATHCOM configuration commands that define a
GDSX object file as a TS/MP server. The GDSX server process also runs in NonStop
mode and uses the TMF pseudo procedures.
Set the TS/MP configuration parameters as follows:
= RESET SERVER
= SET SERVER CPUS (0:1) Primary and backup processors
= SET SERVER MAXSERVERS 1 Run one GDSX process
= SET SERVER NUMSTATIC 1 GDSX should always be active
= SET SERVER SECURITY “N” Server class security
= SET SERVER TMF ON Server handles TMF transactions
= SET SERVER PROGRAM $SKY.LINZ.GDSE GDSX object name
= SET SERVER DEBUG OFF No debugging mode
= SET SERVER PROCESS $GDSX GDSX process name
Set the GDSX configuration parameters as follows:
= SET SERVER PARAM MAXLINES 0 Run as a device handler
= SET SERVER PARAM CONTROLFLAGS 8 Run as a converted process
= SET SERVER PARAM MAXBUFPOOL 50000 Reserve some pool space
= SET SERVER PARAM TASKSIZE 2048 Size of data stack
= SET SERVER PARAM DEVICEINFO 1 Allow DEVICEINFO requests
= SET SERVER PARAM TMF 2 Let USCODE start TMF transactions
Note. A GDSX server does not reply with error 70 to a startup message from the PATHMON
process.