Read only integer value records from a table.

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
mac4rfree85
Participant
Posts: 126
Joined: Thu Jul 01, 2010 11:39 pm

Read only integer value records from a table.

Post by mac4rfree85 »

Hi Guys,

I am reading data from SAP table. I need to read only those records which are having numeric value in a paritcular column.

So, i used int(Col name) in the derivation. please guide me if i am correct. Because i am getting an abnormal termination error and the jobs gets failed. So, unable to test the job.

Can somebody point me in a right direction.

Cheers!!!
Mac4rfree
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use Matches operator in a constraint expression.

Code: Select all

InLink.TheValue Matches "1N0N"
If you might need signed integers, extend the pattern.

Code: Select all

InLink.TheValue Matches "1N0N" : @VM : "'-'1N0N" : @VM : "'+'1N0N"
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 »

Reset the aborted job and let us know the contents of any 'From previous run...' log message that shows up.
-craig

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