Hyperion SQR Production Reporting Developer's
Total Page:16
File Type:pdf, Size:1020Kb
HYPERION® SQR® PRODUCTION REPORTING RELEASE 11.1.1 DEVELOPER’S GUIDE VOLUME 1: DESIGNING REPORTS WITH THE SQR PRODUCTION REPORTING LANGUAGE Production Reporting Developer’s Guide, 11.1.1 Copyright © 1996, 2008, Oracle and/or its affiliates. All rights reserved. Authors: EPM Information Development Team This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this software or related documentation is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS: Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007). Oracle USA, Inc., 500 Oracle Parkway, Redwood City, CA 94065. This software is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications which may create a risk of personal injury. If you use this software in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy and other measures to ensure the safe use of this software. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software in dangerous applications. This software and documentation may provide access to or information on content, products and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third party content, products and services. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third party content, products or services. Contents Part I. Production Reporting Basics ..................................................... 11 Chapter 1. Introduction .............................................................. 13 Chapter 2. A Simple Production Reporting Program .......................................... 15 A Sample Program .................................................... 15 Creating and Running Production Reporting Programs .......................... 15 Production Reporting Output ............................................ 16 Chapter 3. Headings and Footings ...................................................... 19 Subdividing Pages ..................................................... 19 Adding Headings and Footings ........................................... 19 Page Heading ..................................................... 20 Page Footing ..................................................... 20 Order of Execution ................................................. 21 Chapter 4. Selecting Data ............................................................ 23 Sample Code ........................................................ 23 Using SELECT Statements ............................................... 24 SELECT Statement Syntax ............................................ 25 Positioning Data ................................................... 25 Chapter 5. Column Variables .......................................................... 27 Using Column Variables in Conditions ..................................... 27 Changing Column Variable Names ........................................ 28 Chapter 6. Break Logic .............................................................. 29 About Breaks ........................................................ 29 Using ON-BREAK .................................................... 30 Skipping Lines Between Groups ........................................... 31 Arranging Multiple Break Columns ........................................ 32 Break Processing with Enhancements ....................................... 33 Handling Page Breaks ............................................... 36 Printing Dates .................................................... 36 Contents iii Obtaining Totals ................................................... 37 Hyphens and Underscores ............................................ 37 Setting Break Procedures with BEFORE and AFTER ............................ 38 Understanding Event Order ........................................... 38 Controlling Page Breaks with Multiple ON-BREAK Columns ..................... 42 Saving Values When Breaks Occur ......................................... 43 Using ON-BREAK on Hidden Columns ..................................... 43 Restrictions and Limitations of ON-BREAK .................................. 45 Chapter 7. SETUP Section ............................................................ 47 About the Setup Section ................................................ 47 Creating the SETUP Section ............................................. 47 Using DECLARE-LAYOUT .............................................. 48 Overriding Default Settings .............................................. 49 Declaring Page Orientation .............................................. 50 Part II. Production Reporting Reports .................................................... 51 Chapter 8. Master/Detail Reports ...................................................... 53 About Master/Detail Reports ............................................. 53 Creating Master/Detail Reports ........................................... 53 Correlating Subqueries ................................................. 55 Chapter 9. Cross-Tabular Reports ....................................................... 61 About Cross-Tabular Reports ............................................ 61 Arrays ............................................................. 62 Creating Arrays ....................................................... 64 Grouping by Category .................................................. 65 Using Multiple Arrays .................................................. 67 Chapter 10. Printing Mailing Labels ..................................................... 71 Defining Columns and Rows ............................................. 71 Running Programs .................................................... 73 Chapter 11. Creating Form Letters ...................................................... 77 Using DOCUMENT Sections ............................................ 77 Using Document Markers ............................................... 77 A Simple Form Letter Program ........................................... 77 iv Contents Chapter 12. Exporting Data to Other Applications ........................................... 81 Part III. Fonts and Graphics ........................................................... 83 Chapter 13. Using Graphics ........................................................... 85 A Simple Tabular Report ................................................ 85 Adding Graphics ...................................................... 86 Sharing Images Among Reports ........................................... 89 Printing Bar Codes .................................................... 91 Using Color ......................................................... 92 Changing Color Specifications ......................................... 92 Chapter 14. Business Charts .......................................................... 95 About Business Charts ................................................. 95 Creating Charts ...................................................... 95 Defining Charts ...................................................... 99 Printing Charts ....................................................... 99 Running Programs ................................................... 100 Passing Data to Charts ................................................ 100 Changing Colors with New Graphics ...................................... 101 Specifying Chart Data Series Colors .................................... 101 Specifying Chart Item Colors ......................................... 102 Creating Combination Charts ........................................... 104 Sample Line Chart Over Bar Chart ..................................... 105 Sample Hi-Low Chart Over Bar Chart .................................. 107 Creating Bubble Charts ................................................ 111 Defining Point Labels ................................................. 114 Chapter 15. Changing Fonts