How can I get the number of rows in the table using Sunopsis API target in ODI 10 g?

Hi guys,.

In fact, I want to send an alert message as soon as the interface is run from a package. I've included alert OdiSendMail that sends an email once the interface is running.

Could someone please tell how to get the number of rows inserted into the table the Sunopsis API target.

I tried to use < % = odiRef.getNbRows () % >, but this has not worked for me. Since I am a beginner, could you please help out me

This is my mail to send ODI format

"The population of data managed to < % = odiRef.getSysDate () % >

Total of lines in the target table is: < - need an API code-> "


Kind regards

Clinton

Published by: LawrenceClinton on February 25, 2013 20:53

Hello

Create the project with details below variable

Nom_de_variable: Total_Row_Count

Type of variable: Variable discount

Definition tab:
Data type: digital
Action: No persistent

Refresh the tab:
Schema: provide the schema of your repository to work and be

SELECT log.nb_row
THE journal of snp_step_log, snp_scen_step step
WHERE log.nno = step.nno
AND step.scen_no = (SELECT scen_no FROM snp_scen_step WHERE step_name='<%=odiRef.getPrevStepLog ('STEP_NAME") % > ')
AND log.sess_no = '< % = odiRef.getSession ("SESS_NO") % >' code at low
AND step.step_name = ' < % = odiRef.getPrevStepLog ("STEP_NAME") % > '

Note: add this variable after the stage of interface in your package (after the interface anywhere you can place), you can add this variable before ODISendEmailNotification in your package

call this varciable * #Total_Row_Count * in the Notification of ODISendEmail

for example :

Data has been fulfilled successfully in < % = odiRef.getSysDate () % >
Total no of lines filled are: * #Total_Row_Count *

it will work

cordially,
Phanikanth

edited by: Phanikanth on February 28, 2013 01:13

edited by: Phanikanth on February 28, 2013 01:14

Tags: Business Intelligence

Similar Questions

Maybe you are looking for