Using MicroStrategy Scheduler

download Using MicroStrategy Scheduler

of 2

Transcript of Using MicroStrategy Scheduler

  • 7/27/2019 Using MicroStrategy Scheduler

    1/2

    Using MicroStrategy Scheduler How to?

    I-server

    MicroStrategy Administration

    Scheduling Reports based on time and eventReports can be schedule based on time or event using MicroStrategy scheduler.Event based Scheduling: Lets assume we have a status table (name: load_status) in our warehouse whichindicates an event of a fact table data load. We wanted to execute a few reports based on the event (when itturns '1').Command manager scriptCreate a command manager script (name:fact_load.scp) with a "trigger event" command. This will be a .scp filewith the following command (assuming "FACT LOAD" is the event name)TRIGGER EVENT "FACT LOAD";Shell ScriptCreate a shell script (name:face_load.sh) which will have the SQL to check the status table (load_status) for aparticular event (in our case - '1'). If the status is 1, the shell script will run the command manager script(fact_load.scp). Upon successful completion, a post SQL can be included to change the event to '0' in theload_status table. Below is a sample shell script-

    export PATH=:.:$PATHCONNECT=CONNECT PARAMETERS# get part_datesql_return=`$CONNECT New ScheduleOnce the schedule wizard opens-Click "Next"Enter Name and Click "Next"Select "Event Triggered" and click "Next"Enter "Start Date" and Select "No End Date". Click "Next"Click on "Events"Click on the top button of the wizard which will allow us to create a new eventEnter the new event name as "FACT LOAD"

    http://mstr.nalgan.com/taxonomy/term/40http://mstr.nalgan.com/taxonomy/term/40http://mstr.nalgan.com/taxonomy/term/14http://mstr.nalgan.com/taxonomy/term/14http://mstr.nalgan.com/taxonomy/term/13http://mstr.nalgan.com/taxonomy/term/13http://mstr.nalgan.com/taxonomy/term/13http://mstr.nalgan.com/taxonomy/term/14http://mstr.nalgan.com/taxonomy/term/40
  • 7/27/2019 Using MicroStrategy Scheduler

    2/2

    Click "Next" and then "Finish"Right click on the new schedule we create and select "Schedule Multiple Reports"This wizard should allow you to select the project, report and the user/user group to which you wanted toassociate.Creating a time triggered schedule is similar. Just that "Time Triggered" should be selected instead of "EventTriggered" in the wizard.