pjs.escapeString()
This API can be used to escape user input for SQL statements.
Parameter
String
Return Value
Escaped string
Example
var _stm = pjs.executeDirect("SELECT UPPER ( '" + pjs.escapeString(CharField) + "' ) FROM SYSIBM.SYSDUMMY1");
pjs.fetch(_stm, CharField);
pjs.close(_stm);
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!