HP 3000 Manuals

UNLOCK [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation


HP Business BASIC/XL Reference Manual

UNLOCK 

The UNLOCK statement relinquishes the exclusive access that the LOCK
statement requested for a file.

Syntax 

UNLOCK #fnum 

Parameters 

fnum             The file number that HP Business BASIC/XL uses to
                 identify the file.  It is a numeric expression that
                 evaluates to a positive short integer.

Examples 

     100 CREATE "File1",FILESIZE=1200
     200 ASSIGN "File1" TO #10         !Assigns file to #10.
     300 LOCK #10                      !File is locked.
     400 PRINT #10; A,B,C
     500 UNLOCK #10                    !File is unlocked after printing.
     999 END

For more information, see the LOCK statement.



MPE/iX 5.0 Documentation