Code:
- With T1 as (
- Select
- AUTHORIZATION_NAME,
- CLIENT_IP_ADDRESS
- from table(qsys2.active_job_info(
- RESET_STATISTICS => 'NO',
- SUBSYSTEM_LIST_FILTER => 'QINTER' ,
- JOB_NAME_FILTER => '*ALL',
- CURRENT_USER_LIST_FILTER => '',
- DETAILED_INFO => 'ALL'
- )) A
- group by authorization_name, client_ip_address
- ),
- T2 as (
- Select
- AUTHORIZATION_NAME
- from t1
- group by authorization_name
- having count(*) > 1
- )
-
- Select
- JOB_NAME, -- The qualified job name.
- SUBSYSTEM, -- The name of the subsystem where the job is running.
- AUTHORIZATION_NAME, -- The user profile under which the initial thread is running at this time. For jobs that swap user profiles, this user profile name and the user profile that initiated the job can be different.
- CLIENT_IP_ADDRESS -- Client IP address, in IPv4 format, being used by the job.
- from table(qsys2.active_job_info(
- RESET_STATISTICS => 'NO',
- SUBSYSTEM_LIST_FILTER => 'QINTER' ,
- JOB_NAME_FILTER => '*ALL',
- CURRENT_USER_LIST_FILTER => '',
- DETAILED_INFO => 'ALL'
- )) B
- where b.authorization_name in (
- select t2.authorization_name
- from t2)
- order by b.authorization_name
- ;
|
|