max value of table column value as vriable in the sequencer

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
srinivas Guduru
Premium Member
Premium Member
Posts: 38
Joined: Sat Dec 29, 2007 9:58 am

max value of table column value as vriable in the sequencer

Post by srinivas Guduru »

Hi
I need to use a Data base table, Row_ID is the primary key, I need to get max value of ROW_ID and max value of ROW_ID value should available throughout (every where) the sequencer.
Like a parameter value, max value of ROW_ID should available any where in the sequencer

Can any one suggest me please

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

Post by chulett »

Then you'll need to determine it outside the Sequence job and pass it into the Sequence as a job parameter. Another Sequence could be used to accomplish that.
-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 »

Make the first (or an early) activity in the sequence a Job activity that fetches the maximum value and loads it into its own user status area. A server job is always recommended for processing just one row. The job activity's $UserStatus activity variable is available anywhere downstream of the 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.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or that. :wink:
-craig

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