Hello All,
In a TI process , we have a DB SQL which pulls data from database and stores it in a cube. Now using same TI process, we want to know, how many records are pushed to cube from DB table based on all logic included in SQL and want to send a mail with number of records pulled to specific users.
Also is it possible to get number of records getting pushed from one cube to another if using TI, we push data from one cube to another. Here as well we need to send no of records pushed through email to users.
Any help would be highly appreciated.
Thanks,
Manoj
Record Count in TI process
- jim wood
- Site Admin
- Posts: 3961
- Joined: Wed May 14, 2008 1:51 pm
- OLAP Product: TM1
- Version: PA 2.0.7
- Excel Version: Office 365
- Location: 37 East 18th Street New York
- Contact:
Re: Record Count in TI process
On the 2 points:
1) Counter all you need is a incremental variable that you set to 0 in the prolog and add one in the data tab: prolog: variable=0 data: variable=variable+1
You can then send this to a counter cube so you have it for reference.
2) Mailing the result isn't as easy as it sounds. If you search Google I think the guys at TM1 Tutorials created some email code. Create a process for this code and in the epilog call this process passing the variable counter result as a variable to that process. Please keep in mind that to run the email code you will need access to a mail server. You should be able to pick this up by looking through instructions that TM1 Tutorials put up with the code.
I hope this helps,
jim.
1) Counter all you need is a incremental variable that you set to 0 in the prolog and add one in the data tab: prolog: variable=0 data: variable=variable+1
You can then send this to a counter cube so you have it for reference.
2) Mailing the result isn't as easy as it sounds. If you search Google I think the guys at TM1 Tutorials created some email code. Create a process for this code and in the epilog call this process passing the variable counter result as a variable to that process. Please keep in mind that to run the email code you will need access to a mail server. You should be able to pick this up by looking through instructions that TM1 Tutorials put up with the code.
I hope this helps,
jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
Go Build a PC
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
- rkaif
- Community Contributor
- Posts: 328
- Joined: Fri Sep 05, 2008 6:58 pm
- OLAP Product: IBM Cognos TM1
- Version: 9.1 or later
- Excel Version: 2003 or later
Re: Record Count in TI process
You can also create some "Status" cubes which stores the information related to the number of Records Read, Skipped, Completion time etc.
Sending results through emails would be one option but if you are using Cognos in your environment then in that case you can use Event Studio to send alerts to the users.
Sending results through emails would be one option but if you are using Cognos in your environment then in that case you can use Event Studio to send alerts to the users.
Cheers!
Rizwan Kaif
Rizwan Kaif