Director log not showing correct number of records inserted

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
nikhil_bhasin
Participant
Posts: 50
Joined: Tue Jan 19, 2010 4:14 am

Director log not showing correct number of records inserted

Post by nikhil_bhasin »

Hi,

I have few jobs which use Teradata API stage with User Defined SQL method in Insert write mode.
I am loading my target table by selecting records from source table and applying few joins/formatting.
My job gets completed successfully but in Director log, the number of records inserted/updated/deleted shows as 0 but in actual some records have actually gone into target table.
This is happening for only few jobs. Does anyone has faced such situation? Requesting your inputs
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Two questions.

1. Do other links in your job show a non-zero row count?

2. What is the stage type upstream of the Teradata API stage?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nikhil_bhasin
Participant
Posts: 50
Joined: Tue Jan 19, 2010 4:14 am

Post by nikhil_bhasin »

My job design is as follows:-

Code: Select all

rowgen -> teradata api stage
Here rowgen stage is acting as a dummy stage which sends just 1 record which is not used anywhere.
All the data processing takes place via a SQL which is written in API stage.
Something like

Code: Select all

Insert Into tab1
(col1,col2,col3....)
Select col1, col2, col3....
From tab2
I know using a DS job here does not solve any purpose but this is the way jobs have been developed before, so had to stick with it.

Also, it is not happening for all the jobs of similar type (rowgen -> tera API), only for few. I tried finding any property difference but of no use.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Add a reject link.
Mamu Kim
Post Reply