× 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.


  • Subject: RE: WRKJOB JOBNAME (w/o userID&job#)
  • From: "Smith, Graham (EBM)" <Graham_SmithEBM@xxxxxxxxxxx>
  • Date: Thu, 19 Apr 2001 18:54:09 +0100

Dan,

I rolled my own with a job API (QUSLJOB) and some user space API's and brute
ignorance.

Its pretty basic but lets you look up jobs using only partial job name.  eg
QPADEV*

I wrote it originally to KILL some BPCS SMG worlds before the nightly
backups.  As they're cunningly named with a similar prefix this utility
works a treat.

I then added simple code to let you look at the spool files or work with job
or hold/release jobs using qcmdexc to run cl commands.  Implememted it as a
command so doesn't build a nice screen simply builds list of jobs in user
space then applies required action to all jobs in list.

Really quick and dirty thing but available as a starting point if you want
it. Its not RPGILE just bog standard RPG.  I don't have time to play with
new fangled stuff like ILE.

Regards

Graham Smith
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
EBM Project 
Hayes Park,
Telephone + 44 208 848 2585
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


> ----------
> From:         D.BALE@handleman.com[SMTP:D.BALE@handleman.com]
> Sent:         19 April 2001 18:08
> To:   MIDRANGE-L@midrange.com
> Subject:      WRKJOB JOBNAME (w/o userID&job#)
> 
> Has anyone beat their head against the wall on this problem?
> 
> You use WRKJOB JOBNAME (without the user ID and job number) and you get a
> list
> of jobs.  Your only option is to select ONE job.  You view the ONE job and
> exit out of that particular WRKJOB display, returned to the command line,
> having to re-run WRKJOB JOBNAME again, trying to remember the last job#
> you
> viewed if you're attempting to look at the next job in sequence.
> 
> Jeez, one woulda thought that IBM would either let you select more than
> ONE
> job from the multiple jobs display *or* at least returned you to the
> selection
> screen after viewing the previously selected job.
> 
> Am I missing something here?  Is there another command that does this?
> Homegrown & willing to share?  If not, is there an API I could use so I
> could
> roll my own?
> 
> - Dan
> Dan Bale says "Ban Dale!"
> IT - AS/400
> Handleman Company
> 248-362-4400  Ext. 4952
> D.Bale@Handleman.com
>   Quiquid latine dictum sit altum viditur.
>   (Whatever is said in Latin seems profound.)
> +---
> | This is the Midrange System Mailing List!
> | To submit a new message, send your mail to MIDRANGE-L@midrange.com.
> | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
> | To unsubscribe from this list send email to
> MIDRANGE-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
> david@midrange.com
> +---
> 
**********************************************************************
 This email and any attachments are confidential and solely
 for the use of the intended recipient.  They may contain
 material protected by legal professional or other privilege.
 If you are not the intended recipient or the person responsible
 for delivering to the intended recipient, you are not authorised
 to and must not disclose, copy, distribute or retain this email
 or its attachments.  Although this email and its attachments
 are believed to be free of any virus or other defect, it is the
 responsibility of the recipient to ensure that they are virus free
 and no responsibility is accepted by the company for any
 loss or damage arising from receipt or use thereof.

**********************************************************************
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

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.