file.close()
Â
This method closes the file.
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.
ExampleÂ
Open file, read first record, close file
pjs.defineTable("productsp", { userOpen: true, read: true });
productsp.open();
productsp.fetchNext();
productsp.close()
Â
RPG Equivalent
CLOSE
Â
Requirements
This API requires the Profound.js Connector module.