hi..
how do I list out what DSjobs use routine_A ?
currently, I export ALL to dsx, and build dsjob to read the dsx & output csv containing: jobname & all derivations. From there I do a search..
There must be easier way..
Thanx.
routine_A used by what jobs?
Moderators: chulett, rschirm, roy
-
- Charter Member
- Posts: 36
- Joined: Thu Jun 10, 2004 11:22 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Get into the Administrator client. Execute the following command, as shown.
You can substitute your routine name for <<Routine Name>> or, if you don't, the command will prompt you for it.
This query will return all jobs containing the name of the routine, whether it is used as a routine or not, but it will be close to what you have said you require. A variation might be to include the left parenthesis of the routine call.
Code: Select all
SELECT NAME FMT '35L', CATEGORY FMT '35L' FROM DS_JOBS WHERE JOBNO IN (SELECT OBJIDNO FROM DS_JOBOBJECTS WHERE EVAL "@RECORD" LIKE '%<<Routine Name>>%');
This query will return all jobs containing the name of the routine, whether it is used as a routine or not, but it will be close to what you have said you require. A variation might be to include the left parenthesis of the routine call.
Code: Select all
SELECT NAME FMT '35L', CATEGORY FMT '35L' FROM DS_JOBS WHERE JOBNO IN (SELECT OBJIDNO FROM DS_JOBOBJECTS WHERE EVAL "@RECORD" LIKE '%<<Routine Name>>(%');
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Premium Member
- Posts: 232
- Joined: Fri Aug 04, 2006 1:20 am
- Location: Bangalore