Guardian Programmer's Guide

Table Of Contents
Communicating With Processes
Guardian Programmer’s Guide 421922-014
6 - 52
Programming the Server
it with the current record value. It does this to ensure that the record was not
changed while the user was entering the new data.
The WRITE^RECORD procedure is called when the requester process sets the
function code to insert a new record. The procedure extracts the database record
from the incoming message and writes it to the database file. If a record with the
same key already exists, then the procedure returns an error indication to the
requester and the new record is discarded.
The TAL code for the server program appears on the following pages.