Job status information for all jobs on DataStage 7.5

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
lordlebu
Participant
Posts: 9
Joined: Mon May 21, 2012 8:35 am
Location: Calcutta

Job status information for all jobs on DataStage 7.5

Post by lordlebu »

I am using DataStage 7.5 on HP UX system. There are hundreds of jobs stored in different projects, I must go to each and every folder to check the job status.

Isn't there any table or file where the list of the statuses for all jobs is stored?

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

Post by chulett »

Each job stores its own status in a separate table. If you need to check everything all the time, script something or build a BASIC routine. The API will allow you to get a list of all projects on the server, then you can iterate through the list of projects and get a list of all jobs in that project. Lastly, you can check the status of each job and report / handle any issues found.

From the command line you would use dsjob. The BASIC API has equivalent functions all starting with DSGet which you can find in the built-in Help index.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Open Director client in Status view. Optionally sort by status. Disable display of Category. Produce a report via Project > Print then choosing Print To File option.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
lordlebu
Participant
Posts: 9
Joined: Mon May 21, 2012 8:35 am
Location: Calcutta

Post by lordlebu »

Actually I was thinking about an automated process from server side itself. like getting the list of number of processes in Oracle by v$session
Lebu
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Well why didn't you say so?

Read Craig's post carefully. There's no simple view of "the status of all jobs" on the server. You would need to script something to obtain a list of all jobs then loop through these obtaining the status of each. It's easily doable, but no single view exists.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
lordlebu
Participant
Posts: 9
Joined: Mon May 21, 2012 8:35 am
Location: Calcutta

Post by lordlebu »

There is another issue, I donot have the rights to access 'dsadm' from unix.

I see directories like:

/dstage/projects/MikusProj/RT_STATUS*

Is there anyway to extract the job status from these files?
Lebu
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Any DataStage user will do, you don't need to be admin. That or build a Server job.

And no, not like you mean. Use the API.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Or use dsjob command, which itself uses the API.
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 »

That's already been mentioned but I assumed the "I do not have the rights" comment meant a scripted approach was not feasible.
-craig

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