jt400

How to show active jobs using AS400 (JT400) client access software?

喜夏-厌秋 提交于 2020-01-15 07:29:21
问题 I want to develop as400 client access software. I want to monitor disk space, cpu usage etc.. And Job list. I got job list. But I want get to active jobs only. Please help me. This is my job List Code : try { AS400 system = new AS400 ("SERVER","USER", "PASS"); JobList jobList = new JobList(system); Enumeration list = jobList.getJobs(); while (list.hasMoreElements()) { Job j= (Job) list.nextElement(); String GCPU = Integer.toString(j.getCPUUsed()); System.out.println("Name " + j.getName() + "

Monitor and handle MSGW messages on a job on an IBM i-series (AS/400) from Java

风格不统一 提交于 2020-01-03 05:31:11
问题 Does anyone know how one can automatically reply to messages with status MSGW that block a job on an IBM i-series (AS/400)? I'm using the jt400/jtopen library to access a program on an AS/400 from Java. I'm using the com.ibm.as400.access.ProgramCall class, which works fine, unless the program fails for some reason. As with almost any program, failures will happen sometimes, but unfortunately, in this case, it does not result in a status message or an exception. Instead, the calling thread

JT400.jar Disable Login Screen

心不动则不痛 提交于 2020-01-01 02:46:24
问题 Can anyone help me out? I have small utility application that uses the Jt400-6.7.jar to connect to an AS400 server. Please see the following code private Connection buildConnection(String url, String userName, String password) throws ClassNotFoundException, SQLException { Connection connection = null; Class.forName("com.ibm.as400.access.AS400JDBCDriver"); DriverManager.setLoginTimeout(10000); //OVER HERE!!! connection = DriverManager.getConnection(url, userName, password); return connection;

SQL query of multi-member file on AS400

烂漫一生 提交于 2019-12-18 11:22:40
问题 On AS400 in interactive SQL in a 5250 session, select * from myfile returns rows from one member only when myfile has more than one member. How can I get rows from a specific member? Important: in the end I'd like to do this over JDBC with jt400 so really I want a solution that'll work there. Thanks. 回答1: You can create an alias using the create alias command: CREATE ALIAS myLibrary/myAlias FOR memberLibrary/memberFile(memberName) This will allow you to run sql against that member using the

How to get IPv4 Connection Status to JAVA (JT400) Application

只愿长相守 提交于 2019-12-12 05:16:57
问题 I want to know how to get IPv4 Connection Status to java application Work with IPv4 Connection Status System: V172172 Type options, press Enter. 3=Enable debug 4=End 5=Display details 6=Disable debug 8=Display jobs Remote Remote Local Opt Address Port Port Idle Time State * * ftp-con > 092:54:32 Listen * * ssh 092:25:07 Listen * * telnet 000:01:20 Listen * * smtp 092:25:36 Listen * * netbios > 092:25:36 Listen * * netbios > 000:00:01 *UDP * * netbios > 000:00:01 *UDP * * netbios > 092:25:32

How to get PSF Settings in an AS400 Server using Java

拈花ヽ惹草 提交于 2019-12-12 03:03:23
问题 I am a newbie in this site but I know anyone here can help me on this problem that I have now. I used to program Java using JDK7 and now I am facing this JTOpen API for AS400-Java interface but my problem now is how to get all the PSF Setting of my Device Description of a certain Writer? Thanks in advance guys.... Please help..... 回答1: Check out the print API's at http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/print1a.htm If you can find an API that provides the information

How to Get IBM i Job details Using Job Number - Java ( JT400 )

心已入冬 提交于 2019-12-11 19:17:12
问题 I want to get IBM i job details using that job number. i get all job list. but i want to get job details using it's job no. Please help me friends. Edit : I believe the question is 'How can I get job details given a fully qualified job name?' try { AS400 system = new AS400 ("SERVER","USER", "PASS"); JobList jobList = new JobList(system); Enumeration list = jobList.getJobs(); while (list.hasMoreElements()) { Job j= (Job) list.nextElement(); String GCPU = Integer.toString(j.getCPUUsed());

Use of function TIMESTAMP_FORMAT in QSYS2 not valid. Data mapping error on member

社会主义新天地 提交于 2019-12-11 17:18:47
问题 I am very new in iseries/DB2. We use V7R3. We have table that is generated every day by RPG program as physical file. For accessing the table data from java we use jt400.jar jdbc driver. Most of the table queries work fine but some complex queries that are using "DENSE_RANK() OVER(ORDER BY" and "ROW_NUMBER() OVER(PARTITION BY" time to time hanging and causing CPU 100%. only killing the job on AS400 side is resolving the issue. in the AS400 log I see: Job 969954/QUSER/QZDASOINIT started on 02

Setting JT400 to connect to IBM i (AS400) using port 23

陌路散爱 提交于 2019-12-11 02:06:25
问题 I'm trying to connect to IBM midrange (AS400) machine from my java program and then reset a user's password. Using Jt400.jar, I manage to do so. But the problem is, I need to set the port to specificly use port 23. I want it to follow tn5250 on how it connect to AS400. From the IBM website here, I knew I can do so by using as400.connectToPort(23) . What confuses me, when I add that method, I got a java.lang.RuntimeException: java.lang.NegativeArraySizeException . I did try to search what's

AS/400 Message queue filtering - JT400 (JAVA)

十年热恋 提交于 2019-12-10 23:39:33
问题 I'm trying to get queue message list. I already did it using this code. problem is i want to filter it to *inq. this code retrive all messages. but i want to get *inq messages only. how to do it ? I was used "/qsys.lib/qsysopr.msgq" to get QSYSOPR message queue messages. I want to get all message queue's messages. So whats the exact queue path to get all message queue's messages. Thanks in Advance! try { AS400 system = new AS400(); MessageQueue queue = new MessageQueue(system, "/qsys.lib