简体   繁体   English

从PERL连接AS400

[英]Connect AS400 from PERL

I want to connect to AS400 using Perl. 我想使用Perl连接到AS400。 The DBI module is not supporting it. DBI模块不支持它。 Can you suggest any other module? 你能建议其他模块吗? What other stuffs do I need? 我还需要其他什么东西? I am working on a Linux environment. 我正在Linux环境下工作。

In the past, in absence of dedicated driver, I interfaced Perl with AS400 via standard services like rexec and ftp. 过去,在没有专用驱动程序的情况下,我通过rexec和ftp等标准服务将Perl与AS400连接。

# warn: this use clean user/passwd. Use with care
$param="call pgm(someLib/someProc) parm('someUsefulParameters')";
system("rexec -a -l asUser -p asPaswd as400ipAddress \"${param}\" 2>/dev/null >myOutput.txt");
# ...then read myOutput.txt

我对Perl不太了解,但是如果有一个可以通过JDBC或ODBC访问的驱动程序,则应该可以很好地进行连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM