需要帮助从 as400 系统中获取数据
我有很多表和数据库。大多数表都有空的空间,并且没有表 col 有描述性名称..有人可以帮助我从那里获取数据吗?谢谢
I have a plenty of tables and databases. most of the tables have empty spaces and no table col has a descriptive name.. can somebody help me to get the data out of there? thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
查看此链接
此处的文档目的是关键信息。
我相信具体的库是
QSYS2
。更新以添加 FROG 路线:
Select * from QSYS2.Syscolumns where table_schema = 'LIBRARY'
Take a look at this link
For documentation purposes here is the key information.
I believe the specific library for this is
QSYS2
.Update to add directions with F.R.O.G.:
Select * from QSYS2.Syscolumns where table_schema = 'LIBRARY'
如果您有客户端访问(或 iSeries Access),您就有一个名为“从 iSeries 服务器传输数据”的工具。这将允许您轻松地将所有数据转储到您选择的 CSV 或文件类型中。
另一种选择是使用
CPYTOIMPF
。网上有大量关于该工具的文档。第三个选项是FROG for IBM i5。这是一个免费工具,允许您运行 SQL 语句。然后您可以将数据导出到 CSV。
If you have Client Access (or iSeries Access) you have a tool called "Transfer Data from iSeries Server". This will allow you to easily dump all of the data into a CSV or file type of your choice.
Another option is to use
CPYTOIMPF
. There is a ton of documentation on that tool online.A third option is F.R.O.G. for IBM i5. This is a free tool that allows you to run SQL statements. You can then export the data to a CSV.
很久以前我就必须这样做,最终使用了一个非常粗糙的解决方案 - 我使用了一个具有屏幕录制功能的终端模拟器,然后将 AS400 数据转储到终端。然后,我编写了一个简单的程序,它获取捕获的终端会话并将文本字段过滤到数据库中。它很丑陋,但它只是为了一次性将数据导出到新系统,最重要的是它有效。
I had to do exactly this a long time ago and ended up using a very crude solution - I used a terminal emulator which had screen recording functionality and then dumped the AS400 data to the terminal. I then wrote a simple program which took the captured terminal session and filtered the text fields into a database. It was ugly, but it was just for a one-off data export to a new system and most importantly it worked.
此语句将从库中的所有文件中提取所有字段和字段名称。
This statement will pull all fields and field names from all files in a library.