Stored Procedure in TM1 10.2.0

Post Reply
Chittemreddy
Posts: 8
Joined: Thu Sep 16, 2010 9:02 am
OLAP Product: IBM Cognos TM1
Version: 9.5
Excel Version: 2003

Stored Procedure in TM1 10.2.0

Post by Chittemreddy »

Hello Team,

We are able to call the stored procedure using TI process and it will return the value.

It's possible to load the return value into TM1 cube using TI process.

If 'Yes' can you please let me know process for loading.

Regards
Sreenivas.
tomok
MVP
Posts: 2836
Joined: Tue Feb 16, 2010 2:39 pm
OLAP Product: TM1, Palo
Version: Beginning of time thru 10.2
Excel Version: 2003-2007-2010-2013
Location: Atlanta, GA
Contact:

Re: Stored Procedure in TM1 10.2.0

Post by tomok »

Chittemreddy wrote:Hello Team,

We are able to call the stored procedure using TI process and it will return the value.

It's possible to load the return value into TM1 cube using TI process.

If 'Yes' can you please let me know process for loading.

Regards
Sreenivas.
If you are using the TI wizard and your stored procedure call is the "Data Source" then the wizard will guide you through it. If you are writing custom code then use the CellPutS or CellPutN functions in TI. If you don't know how to do that I suggest you take some training or, at a minimum, read the TM1 documentation about TI's.
Tom O'Kelley - Manager Finance Systems
American Tower
http://www.onlinecourtreservations.com/
User avatar
macsir
MVP
Posts: 785
Joined: Wed May 30, 2012 6:50 am
OLAP Product: TM1
Version: PAL 2.0.9
Excel Version: Office 365
Contact:

Re: Stored Procedure in TM1 10.2.0

Post by macsir »

Is it oracle stored procedure you are talking about?
In TM1,the answer is always yes though sometimes with a but....
http://tm1sir.blogspot.com.au/
Chittemreddy
Posts: 8
Joined: Thu Sep 16, 2010 9:02 am
OLAP Product: IBM Cognos TM1
Version: 9.5
Excel Version: 2003

Re: Stored Procedure in TM1 10.2.0

Post by Chittemreddy »

Hello.

Thanks for reply.

We are using the teradata stored procedure.

Regards,
Sreenivas
Chittemreddy
Posts: 8
Joined: Thu Sep 16, 2010 9:02 am
OLAP Product: IBM Cognos TM1
Version: 9.5
Excel Version: 2003

Re: Stored Procedure in TM1 10.2.0

Post by Chittemreddy »

Hello Tomok,

If I use the data source as Flat File or ODBC or TM1 Cube View and we will load the data using CellPutS or CellPutN functions.

We are using the below code in Prolog to call the stored procedure and get the return value based on stored procedure.

ODBCOpen('Accounting', 'Jdoe', 'Bstone');
ODBCOutput('Accounting', '{call StoredProcedureName}');
ODBCClose('Accounting');

We need to load the return value in TM1 cube. How to use the CellPutS or CellPutN functions here.

If have some sample code for same it will be very helpful.

Regards
Sreenivas.
David Usherwood
Site Admin
Posts: 1458
Joined: Wed May 28, 2008 9:09 am

Re: Stored Procedure in TM1 10.2.0

Post by David Usherwood »

That won't work.
Put the call to the SP into the query box. You will then get the output in columnar format into TI variables.
Post Reply