JT400 - Equivalent to DSPASPBRM in java

309 Views Asked by At

I try to read the size of an ASP with the java library JT400. The IBM i (AS400) command to do that is "DSPASPBRM" but I don't find how to do this obtain the same result with the java library.

A solution is to call the command and print the result in a spooled file, and then read the spooled file. But there is maybe a simpler solution.

Does anyone know how to do this ?

1

There are 1 best solutions below

2
On

See if Open List of ASPs (QYASPOL) API has what you need.

Also note that DSPASPBRM is not a standard part of the OS. If you're building a tool for internal use, it might be ok to use. But if you're building a product for others to use, you can't count of it being there.