|
Danny, I added a free open source example of that API to the iSeries-toolkit. You can review the source for the prototype and RPGIV module at: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/iseries-toolkit/CVSROOT/src/qprotosrc/rtvjobinf.proto.irp?rev=HEAD&content-type=text/vnd.viewcvs-markup http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/iseries-toolkit/CVSROOT/src/qrpglesrc/rtvjobinf.irp?rev=HEAD&content-type=text/vnd.viewcvs-markup There are currently three procedures that support retrieving job information like library lists, job queue date, job status, user, number, priority, etc. I will soon be adding some support for thread information. I was planning on adding those along with some other work management related API support to the next release. At this point they are only available as source from the CVS (the links I gave you) server. You will also have to download the latest release from: http://iseries-toolkit.sourceforge.net to pick up some of the other modules this references. David Morris >>> david@midrange.com 01/23/02 10:22PM >>> At 11:49 AM 1/24/2002 +0700, you wrote: >Hi need help, Are there any api I could use to find what's the status of >the job in AS400 (like active or not?). Yes, QUSRJOBI is the API you want (http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3AM703/1.28). The "JOBI0100" format has the status information in a quick & easy format. >I've been using QWCRJBST api to find the status but the api need a fully >qualified job name (jobname/username/jobnumber) which I got stuck with the >job number. I know I could find the job number from interactive command >WRKUSRJOB but what I need is something I could retrieve with pgm ( it could >go to print actually but that add other problem as I've to see into spool >which need spool api too) . Hmmm... sounds like you might want to explore the QUSLJOB API (http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/QB3AM703/1.13) david
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.