Hi,
I am very new to JSL, my background is pl/sql.
I have an INSERT (see below) to an Oracle table that is failing on some rows that have null values in a few of the columns.
In Oracle I would just use NVL e.g. NVL(STD_ERROR,0)
How can I do this in JSL? In this case it's just column7 that is causing the problem but I would wrap all the columns in the function(?).
Any help is greatly appreciated.
for (i = 1, i <= nrows(dt), i++,
sql_statement =
"INSERT INTO TBL_COMBINED_STG " ||
"(Y_AXIS, PROD, LOT, TERM, BIAS, ESTIMATE, STD_ERROR, TRATIO, PROB_T) " ||
"VALUES(" ||ULL
"'" || char(column(1)) || "', " ||
"'" || char(column(2)) || "', " ||
"'" || char(column(3)) || "', " ||
"'" || char(column(4)) || "', 0," ||
//char(column(5)) || ", " ||
char(column(6)) || ", " ||
char(column(7)) || ", " ||
char(column(8)) || ", " ||
char(column(9)) || ") ";
// JMP will add a commit to the insert statement.
Execute SQL(dbc, sql_statement);