Lock or unlock a specified file
Lock or unlock a specified file. If the file is to be locked, the lock status of the file is returned to the user.
- INFILE
- Input file. The name of the file to be locked.
- LOCKFLG
- Lock flag. The status of the lock file is returned in the specified TAE string variable.
LOCKED: File was already locked SUCCESS: Successfully locked
- INFILE
- Input file. The name of the file to be unlocked. This name specification may include, but does not need to include the suffix of the file to be unlocked.
If FILENAME;LOCK doesn't already exist in the current working directory, it will be created and a value of "SUCCESS" will be returned in the TAE variable 'LOCVAR'. If FILENAME;LOCK already exists in the current working directory, a value of "LOCKED" will be returned in the TAE variable 'LOCVAR'.
If FILENAME;LOCK exists in the current working directory, it will be deleted. If FILENAME;LOCK does not exist in the current working directory, no action will be taken.
The root file name and directory specification from INFILE is extracted and a ";LOCK" suffix is appended to it. LOCKFIL-LOCK will create this file, thereby signifying that INFILE is locked. LOCKFIL-UNLOCK will delete this file, thereby signifying that INFILE is unlocked.
A fatal error was encountered during processing. The error message displayed immediately preceding this message is the specific error encountered.
An error occurred while sending the TAE parameter block back to the calling procedure PDF. Contact the system administrator.