0

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 ?

Buck Calabro
  • 7,558
  • 22
  • 25
YLombardi
  • 1,755
  • 5
  • 24
  • 45

1 Answers1

2

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.

Charles
  • 21,637
  • 1
  • 20
  • 44
  • Thanks for your answer. I'm building a tool for internal use. This API seems to have the information that I need but I don't find how to use the API with java code. – YLombardi Mar 26 '15 at 08:35
  • It's a program, you'd call it using the same way you'd call any other server program via JT400. You'll need to take the handle returned and use it in calls to the Get List Entries (QGYGTLE) and Close List (QGYCLST) APIs. (also programs) – Charles Mar 26 '15 at 13:04