file.status()
This method returns the current file status code.
Return Value
A Number value set to the status code resulting from the most recent operation on the file.
Examples
Retrieve file status code
myfile.getRecord(100);
if (myfile.status() === 12) // Record not found
doSomething();
RPG Equivalent
%STATUS(file_name)
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!