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



Yes you could use the List Open Files api. Six of one half dozen of another if all you want to know is if a job is using a file. If a file is open then it will have some sort of lock on it.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of CRPence
Sent: Friday, June 07, 2013 10:20 AM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Terminated Interactive Job Impacts Nightly Processing

On 07 Jun 2013 09:46, Monnier, Gary wrote:
Victor Hunt on Friday, June 07, 2013 9:12 AM wrote:
<<SNIP>> It appears that this users incorrectly ended job held files
open causing the nightly process to fail. <<SNIP>>

<<SNIP>> You could alter this job to also check each QINTER job's
object locks (Retrieve Job Locks (QWCRJBLK) API). This API provides
the information used in DSPJOB JOB(*) OPTION(*JOBLCK). You would at
least know if there are any files open.

FWiW: If the intent is to look _only_ for open files, then the List Open Files (QDMLOPNF) API should effect a list similar to the WRKJOB OPTION(*OPNF), providing an alternate and more direct approach.
Obviously that approach would not be helpful, if the issue is locks vs simply opens.

http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/apis/qdmlopnf.htm
_i List Open Files (QDMLOPNF) i_
"...
The List Open Files (QDMLOPNF) API generates a list of *FILE objects that are currently open in the job or that were opened by the thread that is specified in the job identification information input parameter.
..."

--
Regards, Chuck
--
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.

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.