Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejavascript
var c1 = pjs.allocStmt();
c1.executeDirect("SELECT prid, prname, prdesc FROM demolib/productsp ORDER BY prid");

if (SQLSTATEsqlstate == '00000') {

  while (c1.hasMoreRows()) {
    var objrecords = c1.fetch(50);
    for (var i = 0; i < c1.rowCount(); i++) {
      var record = records[i];
      console.log(obj[i]record);
    }
  }

}

c1.close();