Cancel lock on file link name
| Component: | BS2000 | 
| Functional area: | File processing | 
| Domain: | FILE | 
| Privileges: | STD-PROCESSING | 
Function
The UNLOCK-FILE-LINK command cancels a lock which was applied to an entry in the task file table (TFT) using a LOCK-FILE-LINK command. If there is a current REMOVE-FILE-LINK command which applies to this entry, it will then be processed, i.e. the TFT entry will be deleted as specified in the REMOVE-FILE-LINK command, and the private devices linked to it will be released.
Format
| UNLOCK-FILE-LINK | 
| LINK-NAME = *FIRST-BLANK / <filename 1..8 without-gen> | 
Operands
LINK-NAME = *FIRST-BLANK / <filename 1..8 without-gen>
The file link name of the TFT entry for which the LOCK-FILE-LINK status is to be canceled.
LINK-NAME = *FIRST-BLANK
If *FIRST-BLANK is specified, the first TFT entry in which the file link name consists of blanks will be processed (see the SHOW-FILE-LINK command).
Return codes
| (SC2) | SC1 | Maincode | Meaning | 
|---|---|---|---|
| 0 | CMD0001 | Command executed | |
| 2 | 0 | DMS0662 | Specified LINK name is invalid or does not exist | 
| 1 | CMD0202 | Syntactical or semantic error in command | |
| 64 | DMS06FF | BCAM connection severed | 
Examples
See the LOCK-FILE-LINK command.