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)
{
// …
Run Code Online (Sandbox Code Playgroud) 我正在尝试在JAVA中读取AS400假脱机文件.我用这段代码读了它.但问题是它只检索该假脱机文件的一个页面详细信息.但我想阅读并获取所有页面详细信息.谁知道怎么做?
提前致谢!
代码:
try {
jTextArea1.setText(null);
DefaultTableModel DTM =(DefaultTableModel) jTable1.getModel();
int SR = jTable1.getSelectedRow();
String SPLFNAME = (String) DTM.getValueAt(SR, 0);
String SPLFNUMBERT = (String) DTM.getValueAt(SR, 1);
String JOBNAME = (String) DTM.getValueAt(SR, 3);
String JOBUSER = (String) DTM.getValueAt(SR, 4);
String JOBFNUMBER = (String) DTM.getValueAt(SR, 5);
int SPLNO = Integer.parseInt(SPLFNUMBERT);
AS400 sys = new AS400();
SpooledFile sf = new SpooledFile( sys, // AS400
SPLFNAME, // splf name
SPLNO, // splf number
JOBNAME, // job name
JOBUSER, // job user
JOBFNUMBER ); // …
Run Code Online (Sandbox Code Playgroud)