Page tree
Skip to end of metadata
Go to start of metadata

This API disconnects from the current database connection in your session. You must have a valid connection to successfully disconnect.

Exception Handling

SQL diagnostics are reported in the SQLCA:

https://www.ibm.com/support/knowledgecenter/en/ssw_ibm_i_73/db2/rbafzfielddescsqlca.htm

SQLCA fields are defined in Profound.js programs with the names in lowercase. sqlcode will be set to zero if execution was successful.

Example

 

pjs.connect("*LOCAL");

//...

pjs.disconnect();


Requirements

This API requires the Profound.js Connector module.