×
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.
Thanks Chris
My project currently uses QUSLMBR so I think QUSLJOBI will be a good fit.
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Chris Pando
Sent: Thursday, November 20, 2014 6:05 PM
To: MIDRANGE-L@xxxxxxxxxxxx
Subject: Re: Is job x running
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
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.