2. Points
Covered in
Session.
Description of
while loop.
Subset
creation using
while loop.
Use of the
Break
Functionality in
the while loop.
Data uploading
in the cube
through TI
process using
while loop.
3. While loop.
The While statement allows a process to repeat a series of statements while a given
condition is true.
While statements can be nested.
This function is valid in TM1 TurboIntegrator processes only.
All WHILE statements must conclude with an END statement.
5. While loop counter
We will use a counter variable that we will increment inside the loop.
Increment means increase the value by one.
Note that we continue the loop as long as the counter is less than the
desired last value plus one.
6. Subset Creation
using while
loop(Steps).
Create the Variables or parameters to store the value,
name.
To find the Size of the dimension use DIMSIZ function.
These function return the number of the elements
present In the dimension.
To find the element name of dimension use DIMNM
function.These function return the name of elements
present in the dimension.
Function’s to create subset are subsetexists,
Subsetdeleteallelements subsetcreate,
subsetelementinsert.
ELLEV function use to set the level of elements.
10. Data Upload
using while
loop .
Create the parameter vDim.
Find the size and name of elements of
dimension not present in source file.
Use DIMSIZ AND DIMNM function to find
size and name of the elements present
in the dimension.
Use CellPutN function to upload the data
in the cube.
14. Break
Functionality
use in TI
process.
The Break function can be used to
break out of the loop, whenever
wanted/desired.
You only break out of the current
loop and not out of all loops.
Not only useless iterations,
sometimes you need to prevent the
loop from continuing, to pursue a
certain goal.
18. Question on session.
1. How do you write while Loop?
2. How do you Fix While Loop problem?
3. What is Counter in Loop? And why we use?
4. Why Use Break Function in loop ?Use of Break functionality in loop?