job id & sequence id

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
dodda
Premium Member
Premium Member
Posts: 244
Joined: Tue May 29, 2007 11:31 am

job id & sequence id

Post by dodda »

Hello

I have a requirement where i need to get the Unique job id and unique sequence id which are unique to every job and every sequene and insert those values in the database.

I have searched through forums and didnt find proper answer.

Appreciate if you can help
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Aren't there name unique ?
dodda
Premium Member
Premium Member
Posts: 244
Joined: Tue May 29, 2007 11:31 am

Post by dodda »

yes jobnames are unique. but the requirement is to have the job id and sequence id.

please help me in getting those values

Thanks
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

Whats the requirement?
can't you generate a surrogate key which will serve as unique id.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

What are you considering to be the "unique sequence id"? Do you mean the internal number DataStage assigns at job creation time? If so, you do realize this isn't a static value, yes? It can change over the life of the job.
-craig

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

Post by ray.wurlod »

Code: Select all

SELECT NAME, JOBTYPEIND FROM DS_JOBS WHERE NAME NOT LIKE '\\%';
If you like you can build a DataStage job to use this query in a UniVerse stage (DSN = localuv) and use the results to populate your database 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.
Post Reply