Proper thread authority
Certain authority levels are required before you can work with threads.
To view and change most attributes of a thread you need to have *JOBCTL special authority, or your user profile needs to match the job user identity of the job containing the thread. To change the run priority of a thread, you must have *JOBCTL special authority. Thread Control authority allows you to view some of the attributes of a thread.
To hold or release a thread, you need to have *JOBCTL special authority or Thread Control authority, or your user profile needs to match the job user identity of the job containing the thread. To end a thread, you need to have *SERVICE special authority or Thread Control authority.
For any thread attributes that refer to a IBM i object, such as a library in the library list, the user needs to have the proper authority to the object.
For more details about IBM i authorities, see Authority required for objects used by commands in the Security reference topic collection.