Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

IBM Cognos Proven Practices: Creating a Summary Cube for TM1 Data Reservations

Nature of Document: Tip or Technique; Product(s): TM1 9.5.2; Area of Interest: Development

Sameer Inamdar, Software Engineer, IBM
Sameer Inamdar
Sameer Inamdar is a software engineer working for IBM India Software Labs for the last year and a half. He is currently working on IBM Cognos TM1. He has completed his B.Tech. in Information Technology from College of Engineering, Pune (COEP).

Summary:  This article describes a method to create a cube listing all the data reservations on all available cubes in a TM1 server.

View more content in this series

Date:  08 Jul 2011
Level:  Intermediate PDF:  A4 and Letter (118KB | 5 pages)Get Adobe® Reader®
Also available in:   Portuguese

Activity:  3730 views
Comments:  

Introduction

Purpose

Data Reservation is the new feature added in TM1 9.5.2 and onwards. Data Reservation (DR) is used to reserve regions of a cube by a particular user. Once reserved, a region can only be modified by that user. So it is often necessary to know which users have data reservations on which cubes. This article describes a method to create a cube listing all the data reservations on all available cubes in a TM1 server.

Applicability

TM1 9.5.2


Creating a Summary Cube Using TurboIntegrator

You can build a cube called “DRsummary” using a TurboIntegrator. All you need to do is create a TurboIntegrator process and run it. This process will create the DRsummary cube listing all the data reservations made by users in a TM1 server.

Dimensions of the DRsummary Cube

There are only two dimensions present in the DRsummary cube. You don't need to create them manually. This cube uses Control Object dimensions which are already present in every TM1 server. These dimensions are viewable in TM1 Architect by navigating to the View option on the Main Menu and selecting Display Control Objects. The two dimensions are:

  • }Clients
  • }Cubes

Illustration 1 shows the elements within the Control Object dimensions for the Planning Sample TM1 Server. The image shows two TM1 Architect Subset Editors open side-by-side listing the dimension items in these two Control Object dimensions.


Illustration 1: This image shows the Control Object dimensions }Clients and }Cubes
Illustration 1: This image shows the Control Object dimensions }Clients and }Cubes

Creating the TurboIntegrator Process

To create the TurboIntegrator process follow the procedure listed below.

  1. Create a TurboIntegrator process with a Datasource Type of None.
  2. Copy and paste the following code into the Prolog procedure of the process.
    #****Begin: Generated Statements***
    #****End: Generated Statements****
    
    #If DRsummary cube already exist delete it.
    IF(CubeExists('DRsummary') = 1);
    CubeDestroy('DRsummary');
    ENDIF;
    
    CubeCreate('DRsummary','}Clients','}Cubes');
    
    #Getting no. of elements present in }clients and }cubes dimension
    
    no_user = DIMSIZ('}clients');
    no_cubes = DIMSIZ('}Cubes');
    cube_counter = 1;
    user_counter = 1;
    
    
    vIndex = 1;
    vDelim = '|';
    
    WHILE(user_counter <= no_user);
    user=DIMNM('}Clients',user_counter);
    
    
    cube_counter = 1;
    WHILE(cube_counter <= no_cubes);
    
    #If it is a control cube then it is skipped
    cube_name = DIMNM('}Cubes',cube_counter);
    var1 = scan('}',cube_name);
    
    if(var1<>1);
    vAddress = CubeDataReservationGet(vIndex,cube_name,user,'|');
    
    CellPutS(vAddress,'DRsummary',user,cube_name);
    
    
    endif;
    cube_counter= cube_counter + 1;
    
    END;
    user_counter = user_counter +1;
    
    END;

DRsummary Cube Build Results

After executing this process you are presented with a list of cubes on the TM1 Server (columns) and the TM1 Server users (rows). Each cube that is reserved will be displayed with an entry showing a timestamp when the reservation occurred and the region of the reservation (if applicable) in a new cube called DRsummary.

Illustration 2 shows the resulting Drsummary cube, the rows list the TM1 users and the columns list the application cube names. If there is a value in an intersecting cell then then that means there is a data reservation currently applied to that cube by the user in that row. The cell entry also contains a Time Stamp when the data reservation was applied, along with the data range of the reservation.


Illustration 2: This image shows the resulting Drsummary cube which displays all the current data reservations on a TM1 Server
Illustration 2: This image shows the resulting Drsummary cube which displays all the current data reservations on a TM1 Server

About the author

Sameer Inamdar

Sameer Inamdar is a software engineer working for IBM India Software Labs for the last year and a half. He is currently working on IBM Cognos TM1. He has completed his B.Tech. in Information Technology from College of Engineering, Pune (COEP).

Report abuse help

Report abuse

Thank you. This entry has been flagged for moderator attention.


Report abuse help

Report abuse

Report abuse submission failed. Please try again later.


developerWorks: Sign in


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

Choose your display name

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


Rate this article

Comments

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Information Management
ArticleID=710746
ArticleTitle=IBM Cognos Proven Practices: Creating a Summary Cube for TM1 Data Reservations
publish-date=07082011
author1-email=sameer.inamdar@in.ibm.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

For articles in technology zones (such as Java technology, Linux, Open source, XML), Popular tags shows the top tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), Popular tags shows the top tags for just that product zone.

For articles in technology zones (such as Java technology, Linux, Open source, XML), My tags shows your tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), My tags shows your tags for just that product zone.

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.

Special offers