Hi all,
How do I run a Chore (TI processes) every period, following the company's accounting calendar?
I might have a 'table' (in the form of a dimension or cube), which stores the dates which we want the chore to run.
For example, i have a table (dimension, cube, etc) with the schedule:
02-01-2011
04-02-2011
03-03-2011
01-04-2011
...
And i want to run the Chore on these dates.
Thanks.
Regards,
Melvin
Schedule Chore to run based on dates in a 'table'
-
- Posts: 13
- Joined: Mon Jul 11, 2011 3:07 am
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2007
-
- Community Contributor
- Posts: 139
- Joined: Mon Sep 15, 2008 1:45 pm
Re: Schedule Chore to run based on dates in a 'table'
Assuming you are only going to use core TM1 functionality.
* create a lookup table as follows:
dim1: date dimension, containing all dates
dim2: list of chores
put f.i. a 1 in every cell of this cube where the chore needs to run
* set the chore to run every day
in the prolog section do a lookup and see whether the setting in your lookupcube for the system date and that chore is a 1 or zero.
If it is not 1 => Chorequit
* create a lookup table as follows:
dim1: date dimension, containing all dates
dim2: list of chores
put f.i. a 1 in every cell of this cube where the chore needs to run
* set the chore to run every day
in the prolog section do a lookup and see whether the setting in your lookupcube for the system date and that chore is a 1 or zero.
If it is not 1 => Chorequit
-
- Posts: 13
- Joined: Mon Jul 11, 2011 3:07 am
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2007
Re: Schedule Chore to run based on dates in a 'table'
Hi Jeroen,
Thanks for your advice. I think i get what you mean.
Any one else got other ways of doing this?
Thanks!
Thanks for your advice. I think i get what you mean.
Any one else got other ways of doing this?
Thanks!
-
- Community Contributor
- Posts: 139
- Joined: Mon Sep 15, 2008 1:45 pm
Re: Schedule Chore to run based on dates in a 'table'
Another way of doing it would be to use the windows scheduler and call the chore with a .bat file.
-
- MVP
- Posts: 3229
- Joined: Mon Dec 29, 2008 6:26 pm
- OLAP Product: TM1, Jedox
- Version: PAL 2.1.5
- Excel Version: Microsoft 365
- Location: Brussels, Belgium
- Contact:
Re: Schedule Chore to run based on dates in a 'table'
Hello Melvin,
If it is only 1 chore that you run, I would create a dimension with only the dates it has to run (and check the format of the date to make the TI coding easy).
A simple DIMIX will then suffice.
A .bat file (as Jeroen mentioned earlier) could contain the TM1runTI call. If would just stick with a simple TI process that is scheduled every day. Including an IF test on the day, and that's it.
Wim
If it is only 1 chore that you run, I would create a dimension with only the dates it has to run (and check the format of the date to make the TI coding easy).
A simple DIMIX will then suffice.
A .bat file (as Jeroen mentioned earlier) could contain the TM1runTI call. If would just stick with a simple TI process that is scheduled every day. Including an IF test on the day, and that's it.
Wim
Best regards,
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
Wim Gielis
IBM Champion 2024-2025
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
-
- Posts: 13
- Joined: Mon Jul 11, 2011 3:07 am
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2007
Re: Schedule Chore to run based on dates in a 'table'
Hi Jeroen,
Can a windows batch file call a TM1 Chore?
How do I do that?
Just want to consider all options.
Thanks.
Can a windows batch file call a TM1 Chore?
How do I do that?
Just want to consider all options.
Thanks.
-
- Site Admin
- Posts: 6647
- Joined: Sun May 11, 2008 2:30 am
- OLAP Product: TM1
- Version: PA2.0.9.18 Classic NO PAW!
- Excel Version: 2013 and Office 365
- Location: Sydney, Australia
- Contact:
Re: Schedule Chore to run based on dates in a 'table'
IBM has kinda-sorta released an .exe which can be run to execute a chore on a TM1 server. See this thread for further details.melvinleng wrote:Hi Jeroen,
Can a windows batch file call a TM1 Chore?
How do I do that?
Just want to consider all options.
Thanks.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.