Get no. of rows inserted and updated

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
mab_arif16
Charter Member
Charter Member
Posts: 87
Joined: Sat Mar 18, 2006 11:45 pm

Get no. of rows inserted and updated

Post by mab_arif16 »

Hi
I have a job which extracts the data from a stored procedure and upserts it in a table .
I am required to write a log file in unix ,which should contain number of rows inserted and number of rows updated in the table .
I need some suggestion as how to do it
Thanks
Arif
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Are your inserts and updates from a single Stage. Or you are splitting the inserts and updates?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Search for EtlStats.
Mamu Kim
mab_arif16
Charter Member
Charter Member
Posts: 87
Joined: Sat Mar 18, 2006 11:45 pm

Post by mab_arif16 »

DSguru2B wrote:Are your inserts and updates from a single Stage. Or you are splitting the inserts and updates?
They are form a single stage and loaded into the database using upsert method
mab_arif16
Charter Member
Charter Member
Posts: 87
Joined: Sat Mar 18, 2006 11:45 pm

Post by mab_arif16 »

[Hi
Can you tell something more about the ETL stats,how can I access them from command prompt to extract the no of inserted and updated rows and write to a unix file
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Well then i cant think of a way you can get the update/insert info. from the log files.
Check out kduke's ETLStats. Search for it on this forum. That might be able to help you out.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
bcarlson
Premium Member
Premium Member
Posts: 772
Joined: Fri Oct 01, 2004 3:06 pm
Location: Minnesota

Post by bcarlson »

kduke wrote:Search for EtlStats.
Searching for it is one thing. Finding the specific reference you are intending is another when you get 3 pages of results. Is there a particular topic you recommend? Could you post a reference?

Brad.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Try thisfor a start.
You can also download it from kduke's tips page.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Mamu Kim
Post Reply