Query on DataStage Repository

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
chvenkat.v
Participant
Posts: 94
Joined: Fri Dec 14, 2007 3:22 am

Query on DataStage Repository

Post by chvenkat.v »

Hi

I need to query the DataStage repository to know the Job last run time and job status, for example,

Projecct_name job_name job_category job_lastrun_date, job_status
xxxx a temp\a 01/23/2011 finished
xxxx b temp\b 11/01/2009 compiled

I got Projecct_name job_name job_category

ie. SELECT NAME, JOBTYPE, CATEGORY FROM DS_JOBS;

but unable to get last two columns. please help me on this.

Thank you

venkat
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why do you need to query the Repository? This information is available directly using the Director client.

It is a non-trivial exercise to query the Repository, because every job's status information is stored in a separate table.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chvenkat.v
Participant
Posts: 94
Joined: Fri Dec 14, 2007 3:22 am

Post by chvenkat.v »

hi ray,

actually my project contains 1000+ server jobs. In that we have 300+ unused jobs. we need a xls sheet that contains used jobs one list and unused jobs one list. so could you please help on this.

Thanks you

venkat
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Turn off the Category and Refresh options then print to file. Import into Excel and sort away.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chvenkat.v
Participant
Posts: 94
Joined: Fri Dec 14, 2007 3:22 am

Post by chvenkat.v »

hi chulett,

can please tell me how to do that.

Thank you,
venkat.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I did... sorry, meant you can do that in the Director client.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chvenkat.v
Participant
Posts: 94
Joined: Fri Dec 14, 2007 3:22 am

Post by chvenkat.v »

ok no problem

anyone can help me on this plz
surionline
Premium Member
Premium Member
Posts: 4
Joined: Tue Oct 19, 2010 6:29 am

Post by surionline »

chvenkat.v wrote:ok no problem

anyone can help me on this plz

Hi Venkat,

Chullett already explained how to do that...

Here in detail what Chullett said,

Go to director and switch off the categories (Folders) from View menu ,

Then all jobs will list out in one window..
Now go to project menu and select print , there you will see print to file option..
then save it as file then convert to excel..

--suri
chvenkat.v
Participant
Posts: 94
Joined: Fri Dec 14, 2007 3:22 am

Post by chvenkat.v »

hi

Thanks, But we have more then 60+projects in my application.

so is anyway is thier to do it automatically.

Thank you
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You could easily do all this with a looping script that leverages dsjob to first get all projects then all jobs in each project.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chvenkat.v
Participant
Posts: 94
Joined: Fri Dec 14, 2007 3:22 am

Post by chvenkat.v »

hi

can please give me any idea about scripting.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You can get this from the internet, for example here
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

chvenkat.v wrote:can please give me any idea about scripting.
What kind of "idea" are you looking for? If you don't have any shell scripting experience, it's not something someone can teach in a post or two. Do you have anyone you work with you could enlist to help you? You help them with the DataStage syntax, they do all the nasty scripty bits...
-craig

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