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



On 26 January 2011 14:53, <Peter_Vidal@xxxxxxxx> wrote:
Good morning / afternoon:

I have a job "A" that gets locked intermittently due to some 10-15 other
jobs.  I am printing the WRKOBJLCK report to see the jobs but when I have
access to the report is already to late to get the job that is really
affecting my "A" job.

I know that I can write a pgm to read the WRKOBJLCK report, parse its
content and do a DSPJOB on each of them, but I do not have much time and I
was wondering if there is any idea or ideas that you can share to do this
quickly or maybe a one shot type of thing.  I need to know, from these
job, how they are allocating the object I am having conflict with so I can
understand the purpose of that affecting job.

Any feedback is greatly appreciated.


Hi Peter

You could roll your own using the List Object Locks API - QWCLOBJL.
It's easier that parsing WRKOBJLCK output.

I have an ENDOBJLCK command for situations where we have to get access
to the object and there are lots of locks (usually screens left signed
on, etc). I've put the main RPGLE code at
http://www.dbg400.net/foswiki/bin/view/DBG400/RpgleDBG212R4 if it's of
use as a starting point.

Regards, Martin

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.