What jobs are using a flat file?

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
tbtcust
Premium Member
Premium Member
Posts: 230
Joined: Tue Mar 04, 2008 9:07 am

What jobs are using a flat file?

Post by tbtcust »

Hi all.

Is it possible to have datastage generate a report that will list all the jobs that use a particulate flat file?

Thanks in advance for any help.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can query the repository for that and a search for OLETYPE and/or CSeqInput should turn up the previous conversations on the subject.

Or you can just wait for someone to post the query for you. :wink:
Last edited by chulett on Wed Dec 10, 2008 5:01 pm, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jhmckeever
Premium Member
Premium Member
Posts: 301
Joined: Thu Jul 14, 2005 10:27 am
Location: Melbourne, Australia
Contact:

Post by jhmckeever »

Code: Select all

SELECT
   DS_JOBS.NAME AS JOB_NAME FMT '40L',
   DS_JOBOBJECTS.OLETYPE AS STAGE_TYPE FMT '40L',
   DS_JOBOBJECTS.NAME AS FILE_NAME FMT '25L'
FROM
   DS_JOBOBJECTS, 
   DS_JOBS
WHERE
   DS_JOBOBJECTS.OBJIDNO = DS_JOBS.JOBNO AND
   DS_JOBOBJECTS.OLETYPE LIKE 'CSeq%';
I had it lying around in my box o' tricks!
<b>John McKeever</b>
Data Migrators
<b><a href="https://www.mettleci.com">MettleCI</a> - DevOps for DataStage</b>
<a href="http://www.datamigrators.com/"><img src="https://www.datamigrators.com/assets/im ... l.png"></a>
tbtcust
Premium Member
Premium Member
Posts: 230
Joined: Tue Mar 04, 2008 9:07 am

Post by tbtcust »

jhmckeever, thanks for the suggestion. It did not think about querying the underlying database for the answer. I do not see the tables from your query in the xmeta database. I'm guessing the query was for some other version. Thanks again.



chulett, I searched the repository for OLETYPE and found link http://www.anotheritco.com/tools.htm which has a tool called ListFilesAndTablesFromDsx7px written by Chuck Smith. This tool's output is exactly what I need.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I modified a version of Chuck's utility to write the output to a database table so I can query the results. Work'em good. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply