1 / 21

Automating the Cube Build/Publish Process Using CognosScript

Automating the Cube Build/Publish Process Using CognosScript. Brian Morris,. CBIP. BI-340 – Cutting Costs in Half by Automating the Cube Build Process. Cognos Forum 2004 (June 27-30, Orlando, Florida). Brian Morris. Data Warehousing Advisor Kerr-McGee Shared Services, LLC.

aubrianna
Download Presentation

Automating the Cube Build/Publish Process Using CognosScript

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Automating the Cube Build/Publish ProcessUsing CognosScript Brian Morris, CBIP BI-340 – Cutting Costs in Half by Automating the Cube Build Process Cognos Forum 2004 (June 27-30, Orlando, Florida)

  2. Brian Morris • Data Warehousing Advisor • Kerr-McGee Shared Services, LLC. • Over 1,100 Cognos users & growing • Building & Publishing 60+ Cubes Daily • Cognos Products in Production: PPES, IWR, CQ, Viz, NoticeCast, CMM, Web Services, Planning, Consolidation. ReportNet in Dev

  3. Requirements Automated Cube Build / Publish • 24/7 BI Production Environment • Build & Publish Cubes based on: • Scheduled Date & Time • Flag Files • SQL Criteria • Email Notification of: • Success • Called-Off • Failure

  4. Solution Automated Cube Build / Publish • CognosScript • Bundled with Cognos Transformer • Procedural Based • Completely Customizable • Examples available in Knowledge Base • Can be ran Unattended in MS Scheduler

  5. Files and Structure • Master Script, 12 Steps – ~ 2700 lines • LogToDatabase – ~ 1200 lines • SendCDOEmail – ~ 100 lines • NewDateTimeStamp – ~ 100 lines • DeleteFiles – ~ 100 lines

  6. Process Flow Step 1 – Rename Old Macro Log File Step 2 – Flag File Processing Start Step 3 – SQL Condition Processing Step 4 – Rename Old Transformer Cube Build Log Step 5 – Backup the Existing Cubes Step 6 – Delete Expired Logs and MDC Files

  7. Process Flow (continued) Step 7 – Backup the Transformer Model Step 8 – Build from Transformer Model Step 9 – Cube Validation Step 10 – Cube Build Move to Production

  8. Process Flow (continued) Step 11 – SQL Update of Flag Record Step 12 – Flag File Processing Finish On Macro Completion – Send Email Notifications • Success – Macro & Transformer Logs • Called-Off – Macro Log Only • Failure – Macro & Transformer Logs

  9. Success Email

  10. Called-Off Email

  11. Failed Email

  12. Prerequisites For this script to operate the following must be installed: • Windows NT 4.0 SP5 or 2000 Server SP1 • PowerPlay Transformation Server (trnsfrmr.exe) • CognosScript Editor (RunMac32.exe) • PowerPlay Enterprise Server Administration Tools (PPAdminTool.exe) • SMTP (Simple Mail Transport Protocol) Enabled on Server (KB: 117908)

  13. Macro Header

  14. Step Header

  15. Setting of Variables • All Variables for this script are set in one location (Except Email Body) • Variables are grouped by Category • File / Folder Location • Cube Build Conditional • Email Notification Recipients • PowerPlay Enterprise Server

  16. Variable Declaration

  17. Flag Files & SQL Query Conditional Cube Build Variables

  18. Email Notification Email Notification Variables

  19. PPES Variables PowerPlay Enterprise Server

  20. Additional Resources • CD Provided at Conference • http://www.bmorrishome.org • Cognos Support Website • Other Forums (Yahoo Groups, etc)

  21. Question & Answer ? “It’s not Difficult, just Complex” (Morris, 2002)

More Related