JT400 getUsageCount 无需请求许可

JT400 getUsageCount without requesting license

documentation 中明确指出您必须申请许可证才能获得许可证的使用计数。

getUsageCount ()

Returns the usage count for this license. The count returned is the number of licenses that are in use on the system for that product ID, feature, and release when this license was requested. A license must have been requested prior to calling this method.

有没有办法在不通过另一个 class 或对象请求许可的情况下“getUsageCount()”?

我找不到这样的方法,但我认为它一定存在,因为您可以通过终端读取这些信息,而无需终端。如果它存在于 table 中,那么这也将是一个 acceptable 替代方案。

不是我看到的。

您需要使用 ProductList.getProducts 到 return 一个 Products 的数组,然后您可以获得列表中每个产品的详细信息。

与使用 WRKLICINF 并没有什么不同,需要使用 5=在 5250 屏幕上显示细节。