Finding out how many actually updated using Informix CLI

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
Nilz07
Participant
Posts: 1
Joined: Thu Aug 02, 2007 4:38 am
Location: Northampton, UK

Finding out how many actually updated using Informix CLI

Post by Nilz07 »

Hi,

I would like to know if there is a way of actually checking within a datastage job how many rows actually get updated on an informix table.

For example we are updating a record on a table which does not exist but datastage still shows the job as being run successfully and updated. But I need to know how many rows actually did get updated.
Nilz
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Welcome!

Back in the old days when I worked with Informix, I recall it having the same behaviour as the Oracle databases I support now - it is perfectly happy to update or delete a nonexistent record. We'd need to investigate the sqlca area where 'the number of records effected' by the current sql were returned to check for a 0 if we felt that was an error.

I know of no such mechanism available from DataStage, perhaps others do. All I can suggest in its absence is a 'post process' that counts the number of records with the current timestamp, assuming that is, that your updates timestamp the records they touch. Compare that with the expected count based on the input records used in the update link.
-craig

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