Running chores on a given day every month

Post Reply
User avatar
Martin Ryan
Site Admin
Posts: 1988
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Running chores on a given day every month

Post by Martin Ryan »

Is there anyway to run a chore on a given day of the month. E.g. always on the 20th?

I guess I could work around it by running the process nightly and getting it to quit if it's not the 20th, but I'd rather just kick it off once a month.

Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
User avatar
Steve Rowe
Site Admin
Posts: 2416
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: Running chores on a given day every month

Post by Steve Rowe »

I have the same problem and the only way I can see to do it is to test if it's the Xth of the month and then kick off the chore proper or not as the case maybe, just like you say. It's probably possible using a batch file and the api but I can't see that it is worth the drama.
Cheers,
Technical Director
www.infocat.co.uk
User avatar
jim wood
Site Admin
Posts: 3951
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: Running chores on a given day every month

Post by jim wood »

There is another way. If you have installation of MS SQL you could use that to schedule the TI chore. There is a script in the code section (Of this forum) that lets you run a process / chore from the command prompt. Simply embed this script (edit as needed) within a DTS and schedule. If you would like to know more about this option let me know,

Jim.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
User avatar
Martin Ryan
Site Admin
Posts: 1988
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Re: Running chores on a given day every month

Post by Martin Ryan »

That'd be great... except we don't have SQL. We're bashing heads to get it as we need to get something robust for maintaining dimensions and security between servers.

Might just have to do the daily run as mentioned by Steve.

Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
User avatar
bihints.com
Posts: 52
Joined: Tue May 20, 2008 8:56 am
OLAP Product: TM1
Version: 9.0.3
Excel Version: 2003
Contact:

Re: Running chores on a given day every month

Post by bihints.com »

Why not set Windows scheduled tasks of your server to run the TM1ChoreExecute.exe available in the tools section of the forum?
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: Running chores on a given day every month

Post by Steve Vincent »

Only works if you have admin rights on your PC tho, so it depends on the situation ;)
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
User avatar
wissew
Posts: 54
Joined: Tue Jun 17, 2008 7:24 pm
OLAP Product: TM1
Version: 9.5.2; 10.2.2; 11
Excel Version: 2003 SP3 - 2013
Location: Beaverton, OR

Re: Running chores on a given day every month

Post by wissew »

There is another way to go about this. We have a binary cube (year, month, day) and it is populated with the days of the month that are work days. We can then schedule chores to run on a given work day of the month or on a calander day. This block of code is inserted on the prolog tab and its bullet proof.

Wes

#* Lock outlooks on the 7th workday

ThisYear = SubsetGetElementName('Year', 'ThisYear', 1);
ThisMonth =SubsetGetElementName('Time', 'ThisMonth', 1);
ThisWorkday= cellgetn('workday', ThisYear, ThisMonth, 'WorkDaysToDate');

if(ThisWorkDay <>7);
ChoreQuit;
endif;
Post Reply