How to get job-id of a job?

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
vinodlakshmanan
Participant
Posts: 82
Joined: Wed Jul 14, 2004 7:21 am
Location: India

How to get job-id of a job?

Post by vinodlakshmanan »

How can I get the ID of a job using dsjob or Administrator? I'm using the foll query in administrator

Code: Select all

SELECT * FROM DS_JOBS WHERE ??=MyJob
Firstly, what will ?? be? And is the syntax correct, do I need to enclose the Job Name in double-quotes. Also, what is the difference between

Code: Select all

SELECT * FROM DS_JOBS
LIST DS_JOBS
Integrity is what you do when no one is watching
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

SELECT * FROM DS_JOBS -> SQL Syntax
LIST DS_JOBS -> Universe Syntax

Answer for ?? -> NAME

Single Quotes
vcannadevula
Charter Member
Charter Member
Posts: 143
Joined: Thu Nov 04, 2004 6:53 am

Re: How to get job-id of a job?

Post by vcannadevula »

vinodlakshmanan wrote:How can I get the ID of a job using dsjob or Administrator? I'm using the foll query in administrator

Code: Select all

SELECT * FROM DS_JOBS WHERE ??=MyJob
Firstly, what will ?? be? And is the syntax correct, do I need to enclose the Job Name in double-quotes. Also, what is the difference between

Code: Select all

SELECT * FROM DS_JOBS
LIST DS_JOBS

select * from DS_JOBS where NAME = 'ur Job Name'
Post Reply