问题标签 [iseries-navigator]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
68 浏览

windows - 如何使用 odbconf 为 ibm i 访问 odbc 驱动程序设置每个应用程序的包

我想在 Windows 7 Enterprise 32 位上使用命令行设置 IBM i Access odbc。

几乎可以使用 odbcconf 命令设置配置,参考以下站点。

IBM Knowledge Center:连接字符串关键字 - 包属性

但我找不到每个应用程序的自定义包设置的属性。

有没有办法使用 odbcconf 或其他命令行工具为每个应用程序设置自定义包?

0 投票
1 回答
1044 浏览

.net - 在 IBM UDB .Net 中使用欧元符号 (€) 的转换错误

我在存储过程的输入参数中使用欧元符号 (€) 时遇到转换问题。这是我正在使用的代码:

详细的错误是:

SQL 代码为空(执行命令前发生异常)。

环境:

  • Windows 7、VS2010 和 .Net 4.0 框架
  • IBM DB2 for i .NET 提供程序 (13.0.0.2 - V7R1M0)

问候!

0 投票
2 回答
212 浏览

php - db2_fetch_assoc() 在遍历结果集的中途失败

我在 IBM i(AS/400)V7R2、PHP v5.6.5、Zend Server v8.0.2 上运行。

我有一个从 iNavigator 执行的查询不到一秒钟。当我从 PHP 脚本运行相同的查询,然后使用以下命令循环遍历它时:

$numRows最终只是预期结果集的一小部分,我在 Zend 日志中得到了这个错误:

请注意,每次运行 $numRows 的值都会有所不同。几乎就像它在遍历所有结果集之前超时并结束一样,但页面会在几秒钟内加载。除了结果集中缺少的结果之外,一切似乎都可以正常运行并在页面上加载得非常好。

有谁知道可能导致这种行为的原因是什么?

0 投票
2 回答
142 浏览

ibm-midrange - IBM i (iSeries) 视点脚本

我正在尝试将当前存储在 ViewPoint 中的内容作为运行的脚本并将其转换为 SQL 和计划任务。我的问题很简单,我不知道用于 I 系列的脚本语言。谁能告诉我 &STARTS &STARTS2 和 &STARTS3 的结果值是多少

0 投票
0 回答
122 浏览

db2 - 如何在 System i Navigator (AS/400) 中为每 2 个字符拆分 VARCHAR 列的值

首先,大家好,我希望你们今天过得愉快。所以这是我的问题。我的表中有一个列,其中包含所有附加在一起的值,例如

1120304050607080

我需要获取此值,然后将其拆分为许多 2 位值,以便我可以在另一个查询中使用它们,例如

WHERE 模型在 ('11,20,30,40,50,60,70,80') ...

这可以在 Db2 iSeries Navigator 查询中执行吗?如果没有,还有其他方法吗?

谢谢 祝你有美好的一天!

编辑:似乎解决方案是做一个功能。我之前没有在iseries中做过函数,所以如果有人愿意提供帮助,我会接受的!

0 投票
1 回答
1005 浏览

sql-server - SQL Server SPID 处于睡眠状态或可运行状态,但一个多小时内没有任何反应

我使用 SQL Server 2012 BI 版本。

我已经执行了两个运行 SSIS 包的 SQL 代理作业。从历史上看,这些工作一直运行得非常好。今天,在完成第 4 步中的第 1 步之前,这些工作刚刚停止/挂起。

我已经跑了sp_who2,没有什么能阻挡任何东西。我能做些什么来“唤醒”我的工作?详情sp_who2

  • 睡眠状态
  • BlkBy 。
  • 命令等待命令
  • CPU时间 131276
  • 磁盘IO 607734
  • 最后一批 01/12/2017 15:55

这些作业还没有失败,但一个多小时没有做任何事情。

CPU 和 RAM 不表示有太多活动。

解决方案: 感觉 iSeries AS/400 (IBM) 损坏了 .net 框架。重新安装 .net 框架解决了一个问题。我希望它可以帮助某人。

0 投票
0 回答
135 浏览

php - Symfony 2 文件系统。无法访问 AS400 (iSeries) 存储库(路径,而不是数据库)

我正在尝试使用来自 symfony 2 控制器 (php) 的文件系统从 AS400(不是数据库,仅来自服务器的存储库(Windows))获取一些 .pdf,但我无法获取它们。我猜由于服务器有登录名,创建路径时是否需要传递用户和密码?

该路径实际上是一个简单的路径:

\\ip\文件夹名\年份\文件名.pdf

(我曾尝试在非 as400 服务器上使用相同的路径并且它可以工作)。确切的代码示例是这样的:

我不需要创建与 AS400 的 ODBC 连接,对吧?Symfony gitHub 的一名工作人员指出我是“访问非本地文件系统”问题,但我仍然无法在互联网上获得足够的信息。

任何想法、提示或帮助都会很棒!:) 非常感谢!

乌尔齐。

0 投票
1 回答
36 浏览

ibm-midrange - 视图、存储过程对话框在 AS400 i Series Navigator 中从右到左显示

我在 Windows 10 上安装了 i 系列导航器 7.1 版。 i 系列导航器本身按预期从左到右显示。但是,例如在创建新视图或新存储过程或新表时,显示的表单是从右到左的。当我尝试编写 sql 时,这是非常有问题的,因为文本框本身是从右到左的。

在此处输入图像描述

0 投票
1 回答
1208 浏览

ibm-midrange - 断开登录用户 iSeries Navigator

我正在使用 iSeries Navigator 7.1 是否有断开当前登录用户的选项?我认为在第 4 版中,有一个选项。

层次结构如下:

  • 我的连接
    • 数据库
      • 架构
        • 图书馆 A
        • 图书馆 B
        • 库 C 据我了解,在每个库上,我可以有不同的登录用户。如果我错了请纠正
0 投票
1 回答
187 浏览

java - Java 1.4.2 IOException in getOutputStream() on AS400

I'm working under a AS400 system using Java 1.4.2, to get an XML but when I do the request using getOutputStream() I got an IOException and the message only returns the domain of the provider.

Here a part of my code:

And the message error is "ERROR IOException: test.example.it".

I tested my code in a computer with Windows XP, Netbeans 4.1, Java 1.4.2 Build 19 (the same in the AS400) and I get the XML without problems.

I can compile my code into the AS400 but when I run the class in QSHELL or using a RPG Program i get the error.

Somebody knows what else I have to do or why I get this error?

Thanks!

EDIT:

Its a POST method, and actually I included setDoInput and setDoOutput in the code.

Now printing the exception I get this:

java.net.UnknownHostException: test.example.it

ERROR IOException: test.example.it

EDIT:

Looks like nslookup doesn't resolve the domain but after that I retry using the IP and now I have this error...

java.net.SocketException: The value specified for the argument is not correct.
ERROR IOException: The value specified for the argument is not correct.

I think it would be a problem with AS400 security, probably should I add this domain in a list or edit a system value?

EDIT:

Using TCPCFG and then option 10, in this table of hosts I don't have the domain test.example.it, I suppose that I need to add this domain and IP, isn't it?

EDIT:

The version is V6R1M0. I added the IPs (Option 10. Work with TCP/IP host table entries) and now the AS400 resolve the domain but now I have a new problem.

java.net.ConnectException: A remote host refused an attempted connect operation.

In the option 12 I have *SAME in all the options. For option 1 the following:

I found in a group this: "Is the 8080 port on the 400. Is the 400 setup to accept 8080 traffic via SSL".

How can I able the 400 to accept traffic?