× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



message: 3
date: Wed, 19 Nov 2014 21:23:19 +0000
from: Gary Thompson <gthompson@xxxxxxxxxxx>
subject: Is job x running

I want to submit job x, but only if not running.
I don't want spool file madness of DSPJOB/WRKJOB so
maybe I want QUSLJOBI API ?
Current project uses QUSLMBR so maybe I make
a cmd that takes job name and returns y/n if active
job found with that name - what's easier ?

------------------------------

QUSLJOB will do the trick. I've written a utility that displays and
loops through jobs for a given user (we had users getting locked out
of their interactive jobs - when they started a new session we needed
to kill all of the old ones)

http://www.brilligware.com/cp0300r.html

Replace

d LJob s 26a Inz('*ALL *CURRENT *ALL')

with

d LJob s 26a Inz('JOBNAME *ALL *ALL')

and you should have a user space with all instances jobs w/ that name

Chris
chris@xxxxxxxxx
www.brilligware.com Home of MineSweeper5250

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.