DSIC LOCK

TITLEVALUE
NAMEDSIC LOCK
DESCRIPTIONThis will allow a GUI application issue a LOCK or UNLOCK on a global node
or a record in a file. If the LOCK is issued, it is the responsibility
of the application to issue the UNLOCK.
TAGLOCK
ROUTINEDSICLOCK
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERREF
DESCRIPTIONThis can be a closed form of a global or it can be a file number. If it
is a file number, then IFN is also required. The file number can be the
file number of the entire file or the subfile number of corresponding to
the ^DD() value. If it is a subfile, then the IFN parameter must be set
accordingly.

Examples of globals:
^DSI(19621,0) - since there is no record number the global name has to
be passed
^DSI(19621,"B")
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH128

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERIFN
DESCRIPTIONThis is the internal entry number (record number) of the record that you
wish to lock or unlock in the file specified in the REF parameter. IFN
is required if the REF parameter is a file or subfile number.

IFN is the IEN if you are locking the entire record. If you are locking
a subrecord in a multiple, the IFN must be a proper IENS at the
appropriate level as documented in the Fileman DBS manuals.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH15

INPUT PARAMETERSSEQUENCE NUMBER3
INPUT PARAMETERFLAG
DESCRIPTIONThis flag indicates whether or not the global reference should be locked
or unlocked. The default value is 1 which means to lock the global. If
it has a value of -1 then unlock the global reference.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH2

RETURN VALUE TYPESINGLE VALUE
RETURN PARAMETER DESCRIPTIONIf the operation was successful, return 1
Else return -1^message
AVAILABILITYAGREEMENT
INACTIVE
CLIENT MANAGER
WORD WRAP ON
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWED