Page 1 of 1

How to find the files being used in which all jobs?

Posted: Tue Sep 02, 2008 10:43 pm
by ahmedwaseem2000
Hi - How can I find about which all job's are using a particular file? I know that dssearch can be used to find the jobs but how do I do for the files???

Posted: Tue Sep 02, 2008 11:33 pm
by ray.wurlod
I prefer to use Usage Analysis on the table definition imported from the file. But, then, I am rigorous in preserving the links between the table definitions and the jobs that use them. Are you?

How to find the files being used in which all jobs?

Posted: Thu Sep 11, 2008 6:01 am
by Srdhr.B
Hello Ray,

Could you explain me how we can find the job, if the meta data or table definition is not imported? And they have been hard coded mannually?

Is t here any other option in DataStage 7x (Server Jobs) ratherthan Usage Analysis?

Thanks in advance for your inputs.

[quote="ray.wurlod"]I prefer to use Usage Analysis on the table definition imported from the file. But, then, I am rigorous in preserving the links between the table definitions and the jobs that use them. Are you? ...[/quote]

Posted: Thu Sep 11, 2008 7:25 am
by chulett
One way would be to export the project and then manually search the dsx file. Or use a utility like Chuck Smith and others have built to help in the search.

Posted: Thu Sep 11, 2008 8:11 am
by OddJob
As Craig suggests, I have used 'List all files and tables used by jobs in a dsx file' tool (!!) to good effect.

Posted: Thu Sep 11, 2008 8:44 am
by chulett
Yup, we load the output into an Oracle table so we can query it.

Posted: Thu Sep 11, 2008 10:41 am
by throbinson
If by file you mean a Sequential File stage as input/output then this may save you a step;

Code: Select all

SELECT 
 DS_JOBS.NAME AS JOB_NAME FMT '35L',
 DS_JOBS.CATEGORY AS JOB_CATEGORY FMT '35L',
 EVAL DS_JOBOBJECTS."@RECORD<6>" AS FILENAME FMT '35L' 
FROM 
   DS_JOBOBJECTS
   , DS_JOBS 
WHERE 
   DS_JOBOBJECTS.OLETYPE IN ('CSeqInput','CSeqOutput')
AND DS_JOBOBJECTS.OBJIDNO = DS_JOBS.JOBNO
AND FILENAME = '<your filename>'