哪里可以找到DB2 Java 存储过程系统输出?

Where to find DB2 Java Stored procedure system output?

一个 Java 程序被捆绑到一个 jar 中并部署到 DB2。它作为存储过程部署并且运行良好。

问题是:我们在哪里寻找通过 System.out.println("debug message"); 输出的消息?

无处可去。
Restrictions on external routines:

Receiving inputs from the keyboard and displaying outputs to standard output is not possible from external routines. Do not use standard input-output streams. For example:

  • In external Java™ routine code, do not issue the System.out.println() methods.
  • In external C or C++ routine code, do not issue printf().