How to create batchID?

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
A_SUSHMA
Participant
Posts: 43
Joined: Fri Apr 12, 2013 10:34 am

How to create batchID?

Post by A_SUSHMA »

Hi All,

1.How to create the invocation Id(or) batch id through data stage sequence?
2.How to pass the sequence invocation id (or)batch id through data stage routine?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

1. However you like. What do you want to control it - a database? Something within DataStage? For the latter, the simplest is probably to use the supplied "KeyMgtGetNextValue" routine.

2. Sorry, not really sure what you are asking. Can you clarify the question, please?
-craig

"You can never have too many knives" -- Logan Nine Fingers
A_SUSHMA
Participant
Posts: 43
Joined: Fri Apr 12, 2013 10:34 am

Post by A_SUSHMA »

how to pass the "KeyMgtGetNextValue through datastage sequence as parameter?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Invoke it through a Routine activity and use the return value (activity variable $ReturnValue) to supply the value to the job parameter in a Job activity.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
A_SUSHMA
Participant
Posts: 43
Joined: Fri Apr 12, 2013 10:34 am

Post by A_SUSHMA »

In routine activity it is asking routine name. Do I use a routine to generate a batch or invocation id?
yousuff1710
Participant
Posts: 56
Joined: Fri Sep 21, 2007 9:10 am
Location: Bangalore

Post by yousuff1710 »

Hi,

KeyMgtGetNextValue is a built-in routine available in datastage, you have to select this to make use.

I hope it helps.

Thanks,
Yusuf
A_SUSHMA
Participant
Posts: 43
Joined: Fri Apr 12, 2013 10:34 am

Post by A_SUSHMA »

Routine Activity is asking argument. What argument I need to pass?
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

The routine argument is the name associated with the sequence.
You are the creator of your destiny - Swami Vivekananda
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Any string, but one that should be meaningful. It becomes the name of the "sequence" that the routine uses to keep track of the next available batchID. How about "batchID" ?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
A_SUSHMA
Participant
Posts: 43
Joined: Fri Apr 12, 2013 10:34 am

Post by A_SUSHMA »

How to generate a sequence a batchID or Invocation Number in Datastage server Routine.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Asked and answered. If you have a question that's a little more specific, please ask it but that one has already been covered.
-craig

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