Does anyone know how I would get the thread ID of another job in order to retrieve the job lock info? This is the fifth parameter of QWCRJBLK. I will be using the QUSLOBJ API to retrieve all jobs on the system and then want to determine certain locks on those jobs. QUSLOBJ does not appear to provide the thread info for the jobs that it retrieves.
Software/Hardware used:
ASKED:
December 1, 2005 10:55 PM
UPDATED:
November 11, 2010 8:21 AM
Does anyone know how I would get the thread ID of another job…
Jobs don’t have “thread IDs”. Threads have thread IDs. That’s why Lanceholmes suggested using 3 for the thread indicator. When you use a thread indicator value of 3, you must specify a thread ID of binary zeros. Review the Retrieve Thread Attribute (QWTRTVTA) API. Note how it describes ‘Thread identifier’:
Tom