SQL0206-Column or global variable XXXXXX not found.

时间:2015-09-17 ┊ 阅读:8,874 次 ┊ 标签: 编程 , 经验 , 问题

今天遇到此问题,调查半天,runsql都程序里拼接好都是正常的,拿出来单独跑也可以成功,但在job里跑时就报了如下错误,说一个字段竟然找不到,百思不解。最后想可能引用的file版本不对,找到job的initial libl,然后在这个libl下runsql竟然重现了原来的错误,一看output出来的file确实无此字段。终于明白了问题的原因所在,问题也得以解决。
永远不要相信程序会出错,程序只会机械的执行command。
Message . . . . : Column or global variable SCBILD not found.
Cause . . . . . : SCBILD was not found as a column of table *N in *N and was
not found as a global variable in *N. If the table is *N, SCBILD is not a
column of any table or view that can be referenced. Recovery . . . : Do
one of the following and try the request again: -- Ensure that the column
and table names are specified correctly in the statement. -- If this is a
SELECT statement, ensure that all the required tables were named in the FROM
clause. -- If the column was intended to be a correlated reference, qualify
the column with the correct table designator. -- If the column was intended
to be a global variable, qualify the name with the schema where the global
variable exists or ensure the schema is in the path.
From module . . . . . . . . : QQXCPIMESS
From procedure . . . . . . : QQxCPIMessage__SendMessage
Statement . . . . . . . . . : 16
To module . . . . . . . . . : QQXSQLSTAT
To procedure . . . . . . . : QQxSQLStatement__HandleSQLError
Statement . . . . . . . . . : 28
Message . . . . : RUN QUERY command failed with SQLCODE -206.
Cause . . . . . : The SQLCODE is -206. The SQLSTATE is 42703. The DB2 for
i5/OS SQL message text for this error is: Column or global variable SCBILD
not found. Recovery . . . : Check the job log for more information,
correct the error and try the request again.
17/09/15 14:27:21.404494 QQXSRV01 QSYS *STMT QQXSRV01
From module . . . . . . . . : QQXCPIMESS
From procedure . . . . . . : QQxCPIMessage__SendMessage
Statement . . . . . . . . . : 16
To module . . . . . . . . . : QQXPERMQUE
To procedure . . . . . . . : QQxPermQuery__ProcessRunCmd
Statement . . . . . . . . . : 39
Message . . . . : RUN QUERY command ended due to error.
Cause . . . . . : An error occurred when processing a query management RUN
Job Log MERLIN 17/09/15 15:08:17
COGNOSBLD User . . . . . . : AVNAP Number . . . . . . . . . . .
DAYENDAUP7 Library . . . . . : QGPL
SEV DATE TIME FROM PGM LIBRARY INST TO PGM
QUERY command, causing the command to end. Recovery . . . : Check
preceding messages about your request in the job log. Correct any errors
brought to your attention, then try the request again.
40 17/09/15 14:27:21.428073 QQXCLSTQ QSYS 01F5 RUNSQL3
Message . . . . : STRQMQRY command failed.
Cause . . . . . : Each STRQMQRY request normally causes multiple query
management commands to be processed. Query management ended processing for
one of these commands due to an error condition. At least one message about
the error was placed in the job log. Recovery . . . : See the detailed
messages in the job log for more information. Make any necessary corrections
and try the request again.
15031PUS1.jpg
看个美图奖励下自己!

文章评论

添加新评论

温馨提醒:如果您是第一次在本站留言,需要审核后才能显示哦!

相关文章

Mac电脑一直显示有未读信息怎么解决?

Mac电脑一直显示有未读信息怎么解决?

上次还是macOS14,一直没有解决。索性放着不管了,反正把所有没用的信息都清理了,已经确认没有未读信息了。 最近升级了macOS15最新版本,但还是提示有6条未读信息,百思不得其姐! 查了一下网上不少人遇到此问题,有说有bug,有说点掉过滤未知联系人信息啥,都不好用。 最后查到了Apple社...
阅读全文>>
Whatsapp只能查看最近三天的聊天记录了怎么办?

Whatsapp只能查看最近三天的聊天记录了怎么办?

今天突然发现电脑上的WhatsApp只能查看最近3天的聊天记录了,显示要查看3天前的记录请到手机上查看。很是吃惊,以前一直是所有记录都自动同步到电脑版的啊,不论换电脑了还是换手机了,聊天记录从来没丢过。 查询一翻也没有找出来原因,怎么也同步不过去。 电脑版app重新安装了,也不行。 有个方法说...
阅读全文>>
ValueError: Error getting directory

ValueError: Error getting directory

ssl证书过期了 明明自动renew的 然后看log已经好久没更新成功了 查半天是当前server不信任远程连接 只能自己改代码 报错: 21-12-17 13:01:11 Generate CSR...amkevin.csr amkevin.csr generated. /home/www...
阅读全文>>
网页路径中的'.'和'..'还有'./'和'../'区别

网页路径中的'.'和'..'还有'./'和'../'区别

. 表示当前目录 .. 表示当前目录的上一级目录。 ./表示当前目录下的某个文件或文件夹,视后面跟着的名字而定 ../表示当前目录上一级目录的文件或文件夹,视后面跟着的名字而定。 例如: 文件夹 a 下面有 文件夹b c 和文件 d。 文件夹b下面有e.php 和文件f。 则e中的 . 表示...
阅读全文>>
Introduction to ILE RPG Activation Groups

Introduction to ILE RPG Activation Groups

Learn how activation groups can help your ILE RPG programs run more efficiently, how to specify the type of group to use, and closing and reclaimin...
阅读全文>>