IBMi
SELECT object_schema, system_object_name, member_lock_type,
lock_state, lock_scope, job_name
FROM QSYS2.OBJECT_LOCK_INFO
WHERE system_object_schema = 'some_library' ;
SELECT *
FROM QSYS2.AUTOSTART_JOB_INFO;
SBMJOB JOB(jobname) JOBD(library/jobdescription) USER(*JOBD) RQSDTA(*JOBD) INLLIBL(*JOBD)