job name from pid

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
asaf_arbely
Premium Member
Premium Member
Posts: 87
Joined: Sat Jul 14, 2007 2:24 pm

job name from pid

Post by asaf_arbely »

I want to get the job name and project name from the pid or DSnum
Any idea in which table in the repository this kind of information is stored ?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

If 'DSnum' is the internal job number used in all on the control structures names (like the 'nnn' in RT_LOGnnn) then you can query that from DS_JOBS:

Code: Select all

SELECT NAME, CATEGORY FROM DS_JOBS WHERE JOBNO = 'nnn';
Going back to it from the PID is another kettle of fish, not sure off the top of my head and not somewhere where I can... experiment.
-craig

"You can never have too many knives" -- Logan Nine Fingers
asaf_arbely
Premium Member
Premium Member
Posts: 87
Joined: Sat Jul 14, 2007 2:24 pm

Post by asaf_arbely »

do you know of a way to do it the other way around ? i meen to get the jobnumber from the job name ?
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

umm..

Code: Select all

SELECT JOBNO, CATEGORY FROM DS_JOBS WHERE NAME = 'MyJobName';
Post Reply