HP 3000 Manuals

Multi-user Syntax [ Micro Focus COBOL for UNIX COBOL User Guide ] MPE/iX 5.0 Documentation


Micro Focus COBOL for UNIX COBOL User Guide

Multi-user Syntax 

The syntax that is used to make data files sharable is an extension to
the ANSI '85 standard x3.23, and this syntax is based on IBM's 8100 DPPX
multi-user specification.

With the extra syntax you can make data files sharable or you can lock an
entire file.  The latter is an exclusive lock which denies access to the
file by other users.

Existing single-user programs without multi-user syntax can be easily
modified to make them suitable for use in a shared file environment.
Programs compiled with this system automatically use the default locking.
For any other kind of locking you must add the required syntax to your
program, then recompile it.

If your program does not already contain a file status item, you must
declare one in your program, and you must also add any code you require
to handle specific status information.  When a file status data item is
included in your program, whenever the program tries to access a file, a
status is returned in this data item.  The value of this status shows
whether or not the operation was successful.



MPE/iX 5.0 Documentation