Re: End user jobs



"Rob" <rob.hough@xxxxxxxxx> schreef in bericht
news:1151110225.297586.187880@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi,

I am new to the iseries and have been asked to write a few CLP's to do
a specific task. I've managed to get everything working except one
thing. I need to end all the jobs owned by a specific user and can't
seem to figure it out without resorting to using menu you get from the
wrkactjob command. Any help would be appreciated.

-Rob


Rob,
I created a small CLLE program for that. You can use the following API's
Create User Space (QUSCRTUS) List Job (QUSLJOB) Retrieve User Space
(QUSRTVUS) Retrieve Job Information (QUSRJOBI) and KILL teh specific jobs.
There is very good example in the InfoCenter, this is better then and much
faster then using spooled files. To re-use all the API is a good idea to put
all API's in a separate module.

Jan Willem




.



Relevant Pages

  • Hardening the Scheduler Service
    ... ('binary' encoding is not supported, ... Here's the real issue - we need a way to delegate to sys admins the ability to modify and schedule their own jobs, in their own user space, possibly invoking system binaries, all without much security dept. intervention. ...
    (Focus-Microsoft)
  • Re: as400 vs mainframe
    ... jobs on Windows and Unix/Linux than iSeries or mainframe, ... are also a lot more people going for those jobs, and consequently, the ... etc. the pay is much higher. ... The future (and I speak as a long time advocate of  AS/400 aka iSeries aka ...
    (comp.sys.ibm.as400.misc)
  • Re: QZDASOINIT looping problems?
    ... WebSphere Application server using a JDBC (JDBC driver ver 4.5) ... connection to the iSeries. ... triggered by a stored procedure that access tons of data from different ... QZDASOINIT jobs started from the web app to freeze and status shows ...
    (comp.sys.ibm.as400.misc)
  • Re: SNMP vs. IPP
    ... On the print server there's an option to view a log of the jobs processed. ... It's interesting that LPD jobs show the user name of the iSeries user whose spool file it was. ... One thing I found with SNMP was that I couldn't use it to both printers on a multiple port server. ...
    (comp.sys.ibm.as400.misc)
  • Re: Batch Job Performance
    ... cache on Iseries is smart especially on a "dedicated" system, ... group your jobs based on the files they proces you can get better ... performance (no real I/O) ... if you have jobs that use ftp or http to up/download data from other ...
    (comp.sys.ibm.as400.misc)