GOD014 发表于 2009-03-27 10:04

调用的程序报错,请高人帮忙

如题在调用程序的时候 报错了 不知道为什么

Message ID . . . . . . :   CEE9901                                          
Date sent. . . . . . :   03/27/09      Time sent. . . . . . :   09:11:10
                                                                              
Message . . . . :   Application error.RNX9998 unmonitored by KA8864ZBK at   
   statement *N, instruction X'0000'.                                          
                                                                              
Cause . . . . . :   The application ended abnormally because an exception   
   occurred and was not handled.The name of the program to which the         
   unhandled exception is sent is KA8864ZBK KA8864ZBK _QRNI_CANCEL. The program
   was stopped at the high-level language statement number(s) *N at the time   
   the message was sent.If more than one statement number is shown, the      
   program is an optimized ILE program.Optimization does not allow a single
   statement number to be determined.If *N is shown as a value, it means the
   real value was not available.                                             
Recovery. . . :   See the low level messages previously listed to locate the
   cause of the exception.Correct any errors, and then try the request again.


按F10 后 出现下面的内容

Pointer not set for location referenced.                           
Internal failure in compiler or subroutine.                        
Pointer not set for location referenced.                           
Internal failure in compiler or subroutine.                        
Application error.RNX9998 unmonitored by KA8864ZBK at statement *N,
instruction X'0000'.                                             
Application error.RNX9998 unmonitored by KA8864ZBK at statement *N,
instruction X'0000'.

passthru 发表于 2009-03-27 12:09

程序问题。解决办法:

1)加入程序错误例程;

2)重新编译程序,把‘optimized’这类编译参数去掉。

[ 本帖最后由 passthru 于 2009-3-27 12:10 编辑 ]

hornit 发表于 2009-03-27 12:46

有可能是程序内部的变量溢出了

fairyboy 发表于 2009-03-30 23:12

这个好象是 ,字段没有定义,要么就是传入参数的字段名,和数组定义字段同名了。

sater84 发表于 2010-04-09 10:12

我现在也遇到同样的问题了,在SQLRPGLE中按F4调用另一个RPG程式时出现和楼主一样的 问题.
我按照passthru大大的第2种方法编译了一次,还是不行~~~
请大大指点一下,谢谢大大们~~~

passthru 发表于 2010-04-09 17:52

重点查看KA8864ZBK,及相关的东西的内容。

woiny456 发表于 2010-09-24 15:02

还没有结论吗?我也遇到了这样的问题..目前正在查找原因.

insmile 发表于 2010-09-25 12:49

上层调用该程序时传参有问题:
1、没有parm参数;

2、参数列表属性不一致,参数中有变量类型不对,或者长度不对;

mxpy 发表于 2010-10-06 21:59

好象是参数的值有问题
页: [1]
查看完整版本: 调用的程序报错,请高人帮忙