as400迁移至java_AS / 400命令调用 – JT400(Java)

01)我试图使用命令调用方法获取IBM / AS400 Serial no.代码正在工作因为它没有任何错误或异常.我有事情缺失了.帮我纠正它.

02)是否有任何方法可以使用jt400(java)获得AS / 400序列号.我找到了getSerialNum()方法.但是com.ibm.cics.server.CertificateInfo导入会给出异常.还帮我纠正它(如果有人能告诉我如何使用getSerialNum()方法获取序列号对我来说真的很有帮助)

预先感谢!

我的命令调用代码:

AS400 system = new AS400();

CommandCall command = new CommandCall(system);

try

{

// Run the command "DSPSYSVAL" and parameter value for "SYSVAL" is "QSRLNBR"

if (command.run("DSPSYSVAL QSRLNBR") != true)

{

// Note that there was an error.

System.out.println("Command failed!");

}else{

// Show the messages (returned whether or not there was an error.)

AS400Message[] messagelist = command.getMessageList();

for (int i = 0; i < messagelist.length; ++i)

{

// Show each message.

System.out.println(messagelist[i].getText());

}

}

}

catch (Exception e)

{

System.out.println("Command " + command.getCommand() + " issued an exception!");

e.printStackTrace();

}

// Done with the system.

System.out.println("End!");

system.disconnectService(AS400.COMMAND);

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值