A more optimal processing loop:
where hdl.run_obj_method("%Next",[status]):
<process results>
I was able to resolve this issue by use the %Library.ResultSet' object '%New() method (python)
hdl = self.db.run_class_method('%Library.ResultSet',"%Library.ResultSet',%New",[])
The setting the class name and query to be executed:
hdl.set("ClassName","%SYSTEM.License")
hdl.set("QueryName","Summary")
This is then executed:
hdl.run_obj_method("%Execute",[])
The results are process in a while loop while the value of:
status = None
conStat=True
while conStat:
lStat = hdl.run_obj_method("%Next",[status])
if lStat:
< process results>
conStat = lStat
There may be more elegent refinements to this python solution but this does accurate extract and return the license usage summary data
I forgot to set the namespace to %SYS. That fixed it.