在SQL脚本中访问服务程序程序
我有一个服务计划,其中包含各种导出的程序。我创建了两个SQL功能,应该可以调用这些过程。这两个过程都很简单:发送一个参数,恢复单个结果。使用STRSQL时,我可以访问SQL功能,但是如果我在ACS的SQL脚本中尝试相同的SQL语句,我会收到此消息: **供应商代码:-204消息:[SQL0204] SLBRSRV在 *libl type *srvpgm中找不到。原因 。 。 。 。 。 : 没有找到 *libl类型 *srvpgm中的slbrsrv。如果成员名称为 *全部,则表不被分区。如果这是一个Alter表语句,并且类型为 n,则找不到约束或分区。如果这不是Alter表语句,并且类型为 n,则找不到函数,过程,触发器或序列对象。如果找不到函数,则SLBRSRV是包含该函数的服务程序。除非外部名称和用法名称完全匹配,否则不会找到该函数。  检查作业日志中的一条消息,该消息提供了更多详细信息,以搜索哪个函数名称以及不匹配的名称。恢复 。 。 。 : 更改名称,然后再次尝试请求。  如果对象是节点组,请确保DB2多系统产品安装在系统上,并使用CRTNODGRP CL命令创建节点组。如果找不到外部函数,请确保“创建函数语句”上的外部名称的情况与服务程序导出的名称的情况完全匹配。
I have a service program with a variety of exported procedures. I created two SQL functions that are supposed to be able to call the procedures. Both procedures are simple: send in one parameter, get a single result back. I can access the SQL functions when using STRSQL, but if I try the same SQL statement in SQL Scripts of ACS I get this message:
**Vendor Code: -204 Message: [SQL0204] SLBRSRV in *LIBL type *SRVPGM not found. Cause . . . . . : SLBRSRV in *LIBL type *SRVPGM was not found. If the member name is *ALL, the table is not partitioned. If this is an ALTER TABLE statement and the type is N, a constraint or partition was not found. If this is not an ALTER TABLE statement and the type is N, a function, procedure, trigger or sequence object was not found. If a function was not found, SLBRSRV is the service program that contains the function. The function will not be found unless the external name and usage name match exactly. Examine the job log for a message that gives more details on which function name is being searched for and the name that did not match. Recovery . . . : Change the name and try the request again. If the object is a node group, ensure that the DB2 Multisystem product is installed on your system and create a nodegroup with the CRTNODGRP CL command. If an external function was not found, be sure that the case of the EXTERNAL NAME on the CREATE FUNCTION statement exactly matches the case of the name exported by the service program.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论