01)我试图使用命令调用方法获得IBM/ was 400串行no。代码正在工作,因为没有出现任何错误或异常。我觉得好像少了点什么。帮我改正一下。
( 02)是否有任何方法可以使用jt400 (java)获得AS/400串行no。我找到了getSerialNum()方法。但是com.ibm.cics.server.CertificateInfo导入是例外。还请帮助我更正它,(如果有人可以告诉我如何使用方法获得串行no,这对我真的很有帮助)
提前感谢!
我的命令呼叫代码:
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);发布于 2013-10-24 19:09:50
请看一下SystemValue类。
https://stackoverflow.com/questions/19573504
复制相似问题