NorbertValder

Read a SQL variable by Java API

Discussion created by NorbertValder on Jun 15, 2015
HI!

I want to read a SQL variable via Java API. But the following code always returns 0 rows:

UC4ObjectName objObjectName = new UC4ObjectName ("DB2UTIL.OBJECT_BASINDX.SQL.DB0A1");
OpenObject objOpenObject = new OpenObject (objObjectName, false, true);
conn.sendRequestAndWait (objOpenObject);
Variable var = (variable) objOpenObject.getUC4Object ();
System.out.println (var.size ());

Has anyone an idea?


regards Norbert

Outcomes