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.
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!