DB2/AIX64上的Rowset光标编译嵌入式SQL C 11.1.4.6

发布于 2025-01-22 21:13:51 字数 624 浏览 2 评论 0原文

我的源代码-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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文