DB2/AIX64上的Rowset光标编译嵌入式SQL C 11.1.4.6
我的源代码-C服务例程使用带有Z/OS上的Rowset定位编译的光标。我们使用类似的编译过程将所有内容移植到AIX。我们在AIX上拥有的旧DB2版本不支持Rowset光标,但是这个新版本应该。
编译过程在第一行中失败,其中使用2D数组找到了主机变量的结构定义。这是Rowset光标的先决条件。
char SL_ISO2 ??(19??) ??(3??) ;
DB2准备线:
db2 prep $PC_SYSIN bindfile USING $PC_DBRMLIB OUTPUT $PC_SYSTSIN $PC_PARAMS $BIND_PARAMS
以及此类编译器过程的输出,
448 SQL0008N The token "[" found in a host variable
declaration is not valid.
所有内容在Z/OS和所有程序上都起作用,而无需编译AIX上的行程。编译器为XLC 13.1.3.4。 AIX 7100-05-09-2136。 我在网上发现的一些线索表明,我应该尝试一些DB2预处理程序选项,但到目前为止还没有成功。
My source code - C service routine using cursors with rowset positioning compiles on z/OS. We are porting everything to AIX using similar compiling procedures. Old db2 version we had on AIX didn't support rowset cursors but this new one should.
The compile procedure fails at the first line where it finds a struct definition for host variables using 2D arrays. This is a prerequisite for rowset cursors.
char SL_ISO2 ??(19??) ??(3??) ;
db2 prep line:
db2 prep $PC_SYSIN bindfile USING $PC_DBRMLIB OUTPUT $PC_SYSTSIN $PC_PARAMS $BIND_PARAMS
And the output of the compiler procedure for this
448 SQL0008N The token "[" found in a host variable
declaration is not valid.
Everything works on z/OS and all programs without rowsets compile on AIX. Compiler is XLC 13.1.3.4. AIX 7100-05-09-2136.
Some clues I found online suggest that I should try some db2 prep preprocessor option but so far no success.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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