file.unlock()
This method releases a locked record.
This is only supported with the IBM i database and not using SQL.
Exception Handling
An Error instance will be thrown with the following properties:
message - The message text.
error - The message id.
help - The message help text.
Examples
Unlock record
pjs.defineTable("myfile", { keyed: true, read: true, update: true });
myfile.fetchNext(); // First record locked
myfile.unlock();
RPG Equivalent
UNLOCK
Requirements
This API requires the Profound.js Connector module.
Some documentation pages have recently moved to a new section: Profound AppDev. If you are having trouble finding specific pages, try the documentation search capability or reach out to our Support team!