ACCELL/SQL: Creating Reports with RPT Report Writer

Size: px
Start display at page:

Download "ACCELL/SQL: Creating Reports with RPT Report Writer"

Transcription

1 ACCELL/SQL: Creating Reports with RPT Report Writer

2 2

3 3

4 4

5 5

6 6

7 7

8 8

9 This manual, Creating Reports With RPT Report Writer, tells you how to develop an application report using Report Writer and gives complete syntax descriptions and examples of Report Writer statements. This document is written for application developers with intermediate knowledge of their RDBMS SQL and basic programming skills. This manual uses the following syntax conventions to describe ACCELL/SQL statements and functions: boldface italic words ITALIC UPPERCASE Boldface words are command keywords or literal strings that you must type exactly as shown. Italic words indicate words, variables, numbers, or expressions that you must provide. Examples are table names, column names, and constants. UPPERCASE ITALIC words are configuration variables. UPPERCASE words in examples are keywords. Keywords are not case sensitive: you can type either uppercase or lowercase letters. UPPERCASE words also refer to data types, such as DATE and TEXT. ( ) Parentheses enclosing an item in the syntax indicate that several elements make up a single item. If the parentheses are in boldface type, they are part of the syntax and must be included. [ ] Square brackets indicate that the enclosed word or item is optional and may be left out. If the brackets are in boldface type, they are part of the syntax and must be included. 9

10 Vertical bars enclosing a stacked list of options mean that you can choose one of the listed options, but only one of them.... Ellipsis points indicate that you can repeat the immediately preceding item any number of times, as needed. Title variable Chapter and section titles are enclosed by a pair of quotation marks. The name of a developer-defined variable can be enclosed by a pair of quotation marks. Variable names are case sensitive: uppercase and lowercase letters are not equivalent. For example, company_address and Company_Address are two different variables. This manual contains specially marked paragraphs containing noteworthy information: Tip A tip contains a suggested action or other helpful information. Dependencies Intersecting circles indicate a feature or statement that is dependent upon a particular user interface, operating system, or RDBMS.. Warning A warning cautions against an action that could cause data loss or damage to the database. Additional Help Additional Help tells you where to find more information about the described topics. ACCELL/SQL ACCELL/SQL notes provide information about using Report Writer with the ACCELL/SQL application development tool. 10

11 Report Writer Basics 11

12 This chapter gives an overview of the RPT and the basic information that is necessary to develop a script and generate a report. Chapter topics include the following: What is Report Writer? Report writer components How Report Writer processes a report script The Report Writer utilities Configuring a report Dependencies The SQL script examples used in this chapter and other chapters in this manual show only the portable ANSI statements and syntax. The exact SQL statement that you use depends on your RDBMS. When using Report Writer with ACCELL/SQL, see for special Report Writer/RPT information. 12 Report Writer Basics

13 What is Report Writer? is a nonprocedural report processor that uses an English-based language to format and generate application reports. The RPT Report Writer lets you quickly and easily design and create formats for multiple-level, tabular reports. Using a RDBMS or ASCII file and a report script, the Report Writer can easily generate a custom report. Detailed feedback is given by the Report Writer on any syntax errors in the report scripts. lets you define the placement and format of columns, headings, footer information, column titles, and pagination in your database reports even create user-defined functions for manipulating report information. Report Writer is run with one of two utilities, irs (for integrated reports) and RPT (for data formatting only.) ACCELL/SQL The irs utility is not available with ACCELL/SQL for MS Windows. Input for your report can be derived from a number of sources. These sources include host language programs, ACCELL/SQL 4GL, SQL queries, and ASCII files. Report Writer Basics 13

14 Using the full functionality of, you can assemble SQL and report scripts in one integrated report script to generate report input data and format the data. Other features include parameter acceptance, validation, and substitution output direction multiple report formats in a single script 14 Report Writer Basics

15 Report Writer Components Before you develop your own reports, you must understand the basic structure of a report and the terms that describe the parts of a report. To generate an application report using, two report components are necessary, report input and a report script. Report Input The report input is data that is supplied to in identically formatted lines. The data can be generated by SQL, a host language user program, ACCELL/SQL 4GL, a text editor, or other utility. You can pass the input data to as standard input from the generating utility. You can also build the SQL query into an integrated report script when you use the irs Report Writer processing utility. Each report input line must contain data columns delimited by a separator character. The input line must end with a newline character. The default separator character is the pipe symbol ( ). Example The following example shows five lines from a report input file Smith 50 salesrep Jones 10 clerk Whittaker 20 salesrep Reilly 30 salesrep data columns separator characters newline (non-printing) Report Writer Basics 15

16 Report Script The report script contains the report language statements. The basics of the report script are its components and syntax. In this manual, descriptions of report scripts assume that you are processing your report with the irs utility. The irs utility is described in more detail on page 29. Report Components A report script is comprised four types of script sections: input environment SQL report format optional optional optional required Only one report format section is required in a report script. When you include multiple report format sections in a report script, you provide your end users with a choice of different report formats while using the same input data. An illustration of report script components is supplied on page 17. A complete description of each script section starts on page 45. Report Syntax The following is the only required language in a report script: the script section identifier RPT_SECTION (only required when using the irs utility for processing) the input format section statement an event section the end format section statement The input statement must be the first command in the report format section and the end statement must be last. The remaining statements and event sections in the report format section can be in any order. An illustration of the report script syntax is supplied on page Report Writer Basics

17 INPUT_SECTION PROMPT What is the bottom of the salary range? [NUMERIC] PROMPT What is the top of the salary range? [NUMERIC] script section report Script report format section report format section ENVIRONMENT_SECTION PIPE= tee current_mo lpr SQL_SECTION RPT_SECTION employee report input emp_name [string 10], emp_job [string 10], emp_salary [amount 4], emp_commission [amount 4] before report print Employee Report: Salaries from $1 to $2 detail print emp_name, emp_job, emp_salary end RPT_SECTION Commission report input emp_name [string 10], emp_job [string 10], emp_salary [amount 4], emp_commission [amount 4] sort emp_job before report print Employee Commission Summary centered before emp_job skip 1 print emp_job detail print emp_name column 8, emp_commission column 24 after report skip print Average Commission for all Employees: column 20, avg(emp_commission) end Report Writer Basics 17

18 18 Report Writer Basics

19 How Report Writer Processes a Report Script This section tells how processes the input data and the report format section statements. Processing control is determined by report events. When a report event occurs, the statements in the corresponding script event section are executed. performs the following tasks when formatting a report. The tasks are done by the two utilities, irs and RPT. The irs utility tasks: Process the environment script section Process the input section to get parameter values Replace all of the parameter placeholders in the script with the corresponding parameter value Use your RDBMS SQL to process the SQL script section query and pass the input data to the RPT utility The RPT utility tasks: Start processing the applicable report format section Make sure input data matches the format and data types, and give a name to the data columns Sorts the input data lines per the sort statement Process the remaining section statements The remainder of this section describes report events and event sections, and how the events sections are processed. Report Writer Basics 19

20 Report Events A report event is the occurrence of a change in the input data or pagination. These are the events that Report Writer uses: The start of each report page The end of each report page The first data line is read in The input value of a sorted column changes An input line is read in The last data line is read in When a report event occurs, RPT process all the format statements that are in the corresponding event section. Using event sections, you can print column labels to introduce a group of data items, do totaling calculations, print report headings, and print a report footer with totals at the end of the report. 20 Report Writer Basics

21 SALES REPORT STATE: CA CITY: Los Angeles CUSTOMERS ORDER # AMOUNT ABC Company, Inc $54, $ $54, Mom s Auto Repair, Inc $98, $23, $55, $177, SALES: Los Angeles $232, CITY: San Jose CUSTOMERS ORDER # AMOUNT Fixit Yourself Company $12, $ $13, SALES: NY $178, TOTAL SALES THIS REPORT: $1,003, AVERAGE CUSTOMER ORDER : $13, ============================================================ There are three primary event types: Report pagination Sorting Data input Report Writer Basics 21

22 Report Pagination Events and Event Sections Report pagination events occur at the start of each report page at the end of each report page The processing that is done when a report pagination event occurs is specified in these event sections: header footer header The header event section can be used to print a running title, date, time, or page number at the top of each report page. The text processing specified by header prints on the first page if before report command is not used. footer The footer event can print information at the bottom of each report page. Sorting Events and Event Sections Each item you sort by is called a sort key. A sort key can be a database column, or a complex expression composed of columns, constants, variables, arithmetic operators, and functions. Sorting serves two functions: To arrange items with different sort keys into ascending or descending sequence Put items into groups by the same sort key, for example, all customers in a specific city When a list of data lines are put into groups by their sort keys, an event occurs each time the sorted column value changes. The processing that is done when a sorting event occurs is specified in these event sections: before sort_key after sort_key 22 Report Writer Basics

23 In the Sales Report example, shown on page 21, the sales input is sorted by state, by city within state, and by customer within city. The expression named state is the highest level sort expression, because state is the first expression in the sort command: sort state, city, customer The expression named customer is the lowest level sort expression, because customer is the last expression name in the sort command. When expressions are sorted hierarchically, the sort expression that changes least is the highest level sort expression. More complex expressions composed of several columns, operators, and functions can be given a name in the sort command. Then the expression can be referred to by this name in the report script. Before and After sort_key Event Sections A sort key event occurs when the specified sorted column value changes. One before sort_key and after sort_key event section can be associated with each sort key in the sort command. As a sort key value changes, the before sort_key and after sort_key sections for that sort key are processed, as well as the sections for sort expressions lower in the sort hierarchy. The after sort_key event section can be used to print a cumulative total of the sort key values in that sort group. A before sort_key event section has access to the data in the first input line of the new sort group about to be processed. Similarly, an after sort_key section has access to the information in the sort group just processed. At an event, before sort_key sections are processed according to the sort hierarchy, starting with the section associated with the highest level sort expression. The after sort_key sections are processed in reverse sequence. Example The data in this example illustrates sorted data and identifies changes in the sort key and sort groups. The input data lines are comprised of the columns state, city, company, o_num, o_amount. The data is sorted with this sort statement: sort state, city, company Report Writer Basics 23

24 sort key value changes CA Los Angeles ABC Company, Inc CA Los Angeles ABC Company, Inc CA Los Angeles Mom s Auto Repair, Inc CA Los Angeles Mom s Auto Repair, Inc CA Los Angeles Mom s Auto Repair, Inc CA San Jose Fixit Yourself Company CA San Jose Fixit Yourself Company GA Atlanta Top Flight Repair, Inc NY Albany Alice s Hardware NY Albany Do Right Supply Company NY Albany Do Right Supply Company state city company CA Los Angeles ABC Company, Inc CA Los Angeles ABC Company, Inc CA Los Angeles Mom s Auto Repair, Inc CA Los Angeles Mom s Auto Repair, Inc CA Los Angeles Mom s Auto Repair, Inc CA San Jose Fixit Yourself Company CA San Jose Fixit Yourself Company GA Atlanta Top Flight Repair, Inc NY Albany Alice s Hardware NY Albany Do Right Supply Company NY Albany Do Right Supply Company Input Data Events and Event Sections In addition to an event that occurs when a sort key value changes in the input data, events also occur as the first data line is read in as each line is read in after the last data line is read in The processing that is done when an input data event occurs is given in these event sections: before report As the first data line is read in detail after report As each line is read in After the last data line is read in 24 Report Writer Basics

25 The before report and after report event sections give commands to control processing at the start and the end of the report. These are the highest level of events. Before Report Event Section The before report section is processed first before other control breaks are processed. Then, existing before sort_key sections are processed before detail information is considered for output. You can use the before report event section to print a descriptive heading identifying the report and initialize variables before the first input line is read. detail Event Section A detail control break occurs each time a new line is read from the input file this is the lowest level break. In the Sales Report example, the detail command is used to print the order number and order amount. After Report Event Sections The after report event section is processed at the end of the report after all input data lines and after sort_key sections are processed. The after report event section can be used to print a report summary or grand total after the last input line is read. Report Writer Basics 25

26 Processing Event Sections RPT processes the report event sections in this sequence: header and footer control breaks are not included, because when they occur depends on the page dimensions. Example This example shows how the event sections in the Sales Report are processed as the input data is read in. before report (or header) before state before city before customer after customer before customer after customer after city before city before customer after customer after city after state before state before city before customer after customer before customer after customer after city after state after report CA Los Angeles ABC Company, Inc CA Los Angeles ABC Company, Inc CA Los Angeles Mom s Auto Repair, Inc CA Los Angeles Mom s Auto Repair, Inc CA Los Angeles Mom s Auto Repair, Inc CA San Jose Fixit Yourself Company CA San Jose Fixit Yourself Company GA Atlanta Top Flight Repair, Inc NY Albany Alice s Hardware NY Albany Do Right Supply Company NY Albany Do Right Supply Company Report Writer Basics

27 Example This second example shows a report and the report format script used to format the data. This example shows how to use event sections to format your report and control data processing: SALES REPORT STATE: CA CITY: Los Angeles CUSTOMERS ORDER # AMOUNT ABC Company, Inc $54, $ $54, Mom s Auto Repair, Inc $98, $23, $55, $177, SALES: Los Angeles $232, CITY: San Jose CUSTOMERS ORDER # AMOUNT Fixit Yourself Company $12, $ $13, SALES: San Jose $13, SALES: CA $245, SALES: NY $178, TOTAL SALES THIS REPORT: $1,003, AVERAGE CUSTOMER ORDER : $13, ============================================================ Report Writer Basics 27

28 input state [string 2], city [string 11], customer [string 14], orderno [numeric], price [amount] sort state, city, customer before report print SALES REPORT centered before state print STATE:, state before city print CITY: in column 6, city before customer need 4 print CUSTOMERS col 10, ORDER # col 38, AMOUNT col 54 print 9[ ] col 36, 11[ ] col 51 print customer in col 10 no newline detail print orderno col 36, price col 52 using $$$,$$&.&& after customer need 3 print 11[ ] in column 51 print total(price) column 51 using $$$$,$$&.&& skip 1 after city need 3 print SALES: in column 6, city, total(price) column 49 using $$,$$$,$$&.&& print 56[ ] column 6 skip 1 after state need 2 print SALES:, state, total(price) column 49 using $$,$$$,$$&.&& print 61[ ] skip 1 after report need 4 print TOTAL SALES THIS REPORT:, total(price) col 49 using $$,$$$,$$&.&& print AVERAGE CUSTOMER ORDER :, avg(price) col 52 using $$$,$$&.&& print 61[ ] print 61[ ] end 28 Report Writer Basics

29 The Report Writer Utilities This section describes the two utilities that are used to process a script, the irs utility and the RPT utility. The most comprehensive method of running a report is with the irs utility. This utility s name stands for integrated report script because the utility lets you integrate parameter prompting, data validation, SQL query, and report formatting in a single script. The RPT utility is used for data formatting only. RPT processes the report format section of a report script. All input data must be supplied by a different method and sent to RPT. It cannot prompt for parameters or define the report environment. The irs Utility The syntax for running the irs utility from the operating system command line is shown below: irs options report_script When you use the irs utility, a prompt displays to verify the processing of the report script. If you have multiple report format sections in the script, you are also prompted for the report format that you want to use. For a complete description of the irs utility, please see the irs reference page in Configuration Variable and Utility Reference. irs Arguments The irs utility uses these arguments: report_script The report script file that contains the report processor statements to do the report formatting. Report Writer Basics 29

30 irs Options You can use the irs options for three purposes: To override specifications in the environment section To supply values for the input section To automatically select the report format script section that will be used to format the report If parameter values are given in the command line, prompts and messages in the input section are skipped. ACCELL/SQL You can assemble and invoke options through an ACCELL/SQL application. The following table is a brief summary of the generic command line options that the irs utility recognizes: Option Description d database_name Use database as the default database S database_object Use database_object as the name of the database object that contains the database tables to use. OPROMPTER=prompter OSELECTOR=selector OSCREEN OFILE=filename OPRINTER OPIPE=command Prompt for and validate parameter values using the executable prompter Use the executable selector to get the report format section to use Send report output to the standard output device Send report output to file filename Send report output to printer Direct report output as specified by the string command. By default, the executables upager and utee are used. upager is like the UNIX more command and utee is equivalent to UNIX tee. 30 Report Writer Basics

31 Option (continued) OBACKGROUND OERROR_FILE=filename ODEBUG_MODE On=parameter_value OREPORT=rpt_sec_name Description Execute the SQL and report format processing in the background. Cannot be used with OSCREEN. Send error messages to file filename Process the report in debug mode Substitute the value parameter_value for all occurrences of the parameter placeholder $n in the report script Use the script in the specified RPT_SECTION section to format the report. Example The first irs example directs runtime error messages to the file /tmp/err.out, sends the report output to the user s screen, and specifies two parameter values. The value 87/01/01 replaces all occurrences of the placeholder $1 in the report script and 87/12/31 replaces placeholder $2. irs OERROR_FILE=/tmp/err.out OSCREEN O1=87/01/01 O2=87/12/31 In the second example, the report output is directed to the UNIX tee command which sends the output to the file /tmp/out and sends it on to the line printer. The string select * from history; replaces all occurrences of $1 in the report script. The report script file format.irs will be used. irs OPIPE= tee /tmp/out lpr O1= select * from history; format.irs Report Writer Basics 31

32 The RPT Utility The report formatting utility is RPT. The RPT utility is called by irs to format the report script s report format section. You can also run RPT independently when the report input, parameter values, and report output direction is managed by a different method. This is the best utility to use when you have one report format section and you are not using parameters. All RPT report messages and output are directed to the screen. The RPT syntax is shown below: RPT options report_script If no input file is specified either by name or using the dash, RPT examines the report script file and prints a Table Usage Report. See page 35 for information about the Table Usage Report. You can also provide input data to a report script by piping the results of an executable to RPT at runtime. Additional Help For complete syntax information about the RPT utility, see Configuration Variable and Utility Reference. RPT Arguments RPT uses these arguments: report_script input file The script file that contains the report processor statements to do the report formatting. The name of an ASCII file that contains the data to be formatted. Input data is supplied from a pipe. Dependencies MS Windows does not support pipes. To pass input data to a report script that is running on MS Windows, you must direct the input data to a file and then use that input file name in the RPT command line. See the example on page 34 for this type of command syntax. 32 Report Writer Basics

33 Dependencies If you are piping SQL output to RPT, you may have to suppress your RDBMS s SQL query result column heading. When using Unify DataServer, you must the SQL statement lines 0 to suppress the column headings: lines 0; select Manufacturer_ID, Name, Address from manf where Manufacturer_ID > 100; When using ORACLE SQL*Plus, you must use the Unify filter orcfltr to prepare the SQL output for RPT: For more information about the orcfltr utility, see. RPT Options RPT recognizes several command line options, including these: Oreport Prints the Table Usage Report in addition to the report output. S db_object Indicates the name of the default database object that owns or contain the application file to be used. r Remove the script file when the report is complete. Report Writer Basics 33

34 Example This example shows a report script, SQL script, and the RPT command to process them when using the Unify DataServer RDBMS: The RPT report script rscript is shown below: input emp_name [string 10], emp_job [string 10], emp_salary [amount 4], emp_commission [amount 4] sort emp_job before report print Employee Commission Summary centered before emp_job skip 1 print emp_job detail print emp_name column 8, emp_commission column 24 after report skip print Average Commission for all Employees: column 20, avg(emp_commission) end The SQL script sscript is shown below:... select Manufacturer_ID, Name, Address from manf where Manufacturer_ID > In UNIX, to process the SQL query sscript and direct the output to the RPT report script rscript for formatting, you use this command line: SQL sscript RPT rscript To process the script separately, you can use these commands: SQL sscript > outputfile RPT rscript outputfile 34 Report Writer Basics

35 Configuring a Report This section gives information about how you can configure a report for custom format, data display, and your computer system. Configuration is done by setting the configuration variables used by. You can display the current value of many configuration variable by generating a Table Usage Report. The Table Usage Report This section gives information about the Table Usage Report, how to run the table report, and how to change the size of a configuration table. There are 14 configuration variables used by to control the maximum number of occurrences of a report element in a report script. The variable s setting determines the size of the table that stores the elements during the report processing. Each configuration table size can be resized for scripts that use more of some elements and less of others. On computer hardware with limited data address space, this feature lets you decrease the table sizes and make an allowance for larger database designs. The only constraint on the size of each table is the limitation of your swap area in memory. Generating a Table Usage Report You can examine the configuration table s maximum and current size and setting for a given report script by using this command: RPT script_name Notice that there is no input file in the RPT syntax. Report Writer Basics 35

36 The Table Usage Report The following is an example of a Table Usage Report. In the Table Usage Report, the terms command and statement are used interchangeably. RPT Report Processor Copyright Unify Corporation No syntax errors were found in the report script. RPT TABLE USAGE INFORMATION Table Name Used Maximum Expression Nodes n 400 Variables n 150 Constant n 250 Commands n 256 Print Statements n 125 Print Items n 256 Sort Items n 15 Input Items n 100 Command Groups n 25 Set Statements n 100 If Statements n 50 Aggregates n 50 Function Calls n 50 Arguments n 100 Table Elements and Associated Configuration Variables The following data table identifies the report script elements that are controlled by a configuration table, the name of the configuration variable that is related to the table, and the default value for the table. A full description of the table configuration variables starts on page 41 of this manual. 36 Report Writer Basics

37 Changing a Table Size To reset a table size, set the configuration variable that corresponds to the table to be changed. After you set the necessary configuration variables, generate the Usage Table report again to examine the settings. Changes made to a configuration table display at the top of the Usage Report. RPT: RPTNCOM set to 300 RPT: RPTNITM set to 40 RPT Report Processor Copyright Unify Corporation No syntax errors were found in the report script. RPT TABLE USAGE INFORMATION Table Name Used Maximum Expression Nodes n 400 Variable n 150 Constant n 250 Commands n 300 Print Statements n 125 Print Items n 256 Sort Items n 15 Input Items n Report Writer Basics 37

38 Configuration Variables uses three classes of configuration variables: general display formatting element table Additional Help About Setting configuration variables A general or display formatting configuration variable See Managing an Application or Managing a Database Configuration Variable and Utility Reference General Configuration Variables Report Writer uses the following configuration variables to format and control the processing of a report: PAGELN PAGER SEPARATOR The page length of the reports, for example, 66 lines. The paging utility to be used when SCREEN is specified as the output destination in the irs ENVIRONMENT_SECTION. Column separator character for the report script input data. The default separator is the pipe symbol ( ). You should avoid using any of the following reserved characters as the separator character: ^! *. ( ) Warning Be careful if you do use a reserved character as the separator character. For example, if you set the separator character to an asterisk (*), you must set the ACCELL/SQL null character configuration variable, NULLCH, to a different character because the default null character is also the asterisk. WIDTH Width of a report page in number of characters. The default value is 80 characters. 38 Report Writer Basics

39 Display Format Configuration Variables ACCELL/SQL The display format described in this section are available when you are using ACCELL/SQL. For additional information about display formats, see Display Formats in. uses these configuration variables to format input data for the report. AMTFMT Default format template to be used to display AMOUNT data. A dollar sign ($) in the AMTFMT variable shows the position of the currency symbol that is given by CURRSYM. When using AMTFMT to position the currency symbol on the right, use only one dollar sign, regardless of the number of characters in the currency symbol. A comma (,) in the AMTFMT variable shows the position of the triad separator that is given by TRIADSEP. A period (.) in the AMTFMT variable shows the position of the radix separator that is given by RADIXSEP. For example, if AMTFMT is set to ###,##&.&&$, and CURRSYM is set to XXX, then the amount displays as 123,456.78XXX. AMTPREC CURRSYM Display precision (number of digits following the radix separator) for AMOUNT data. If AMTPREC is set to zero ( 0 ), neither the radix separator nor the digits following the radix separator are displayed. Currency symbol that is used when displaying AMOUNT data. This configuration variable is used only when a format template is used. A format template can be given in these ways: in a using clause of the print statement in the AMTFMT configuration variable, set either at the operating system command level, in a configuration file, or in the langcap file DATEFMT Default format in which to accept and display dates. Report Writer Basics 39

40 FLTFMT NULLCH NUMFMT RADIXSEP Default format template to be used to display FLOAT data. Default null display character for all data types. You can override this variable by specifying a default display character fore each data type. Default format template to be used to display NUMERIC data. Radix separator character to be used when displaying AMOUNT data. This configuration variable is used only when a format template is used. A format template can be given in these ways: in a using clause of the print statement in the AMTFMT configuration variable, set either at the operating system command level, in a configuration file, or in the langcap file When the AMOUNT data is displayed, the radix separator given by RADIXSEP displays in the position indicated by the period (.) in the format template. TIMEFMT TRIADSEP Default format in which to accept and display TIME values. Triad separator character that is used when displaying AMOUNT data. The TRIADSEP configuration variable is used only when a format template is used. A format template can be specified in these ways: in a using clause of the print statement in the AMTFMT configuration variable, set either at the operating system command level, in a configuration file, or in the langcap file 40 Report Writer Basics

41 Element Table Configuration Variables The following configuration variables are used to set the maximum value for the Report Writer element tables. RPTNODECNT RPTFLDCNT RPTCONCNT RPTNCOM RPTNPRINT RPTNPITM The number of expression nodes permitted in a report script. Each expression in a script uses one expression node. See the Report Writer Expressions chapter for information on expressions. The number of different variables, including input variables that are permitted in a report script. The number of constants permitted in a report script. The constant table includes numeric, float, amount, date, ldate, time, string, and text constants. The number of format section statements permitted in a report script. Format section statements include sort, after, detail, print, and if. The number of print statements permitted in a report script. The number of print items permitted in a report script. Each comma-divided expression in a print statement is one print item. For example, this statement has three print items: print emp_name, emp_job, emp_salary RPTNSITM The number of sort items permitted in a report script. Each comma-divided expression in a sort statement is one sort item. The RPTNSITM configuration variable also shows the number of presorted input columns sent to the report script. This variable must be set when the sorted option is used with the input statement. For example, this statement has three sort items: sort v_number, po_number, Line_Number RPTNITM RPTNCGRP The number of columns permitted in the input section of an script. The number of event sections permitted in a report script. Report Writer Basics 41

42 RPTNSETCL RPTNIF RPTNAG RPTNCALL RPTNARGS RPTPBUFSIZ RPTINBUFSZ The number of set statements permitted in a report script. The number of if statements permitted in a report script. The number of aggregate functions permitted in a report script. Aggregate functions are min, max, avg, count, and total. The number of local function calls permitted in a report script. A local function call in a report script can be one of the built-in functions or one of your own. The total number of function arguments permitted in a report script. You can pass arguments, or parameters, to local functions. The size in bytes of the sort key buffer. This buffer must be large enough to accommodate the total length of all the sort items column lengths. The size of the input buffer. This buffer must be large enough to accommodate the total length of all the input items column lengths. 42 Report Writer Basics

43 Developing a Report Script 43

44 This chapter describes the capabilities and features of RPT Report Writer and how to write a report script. To develop a report script, you will learn about these topics: Report script sections Report format sections How to customize a report script Examples of report scripts are supplied in Appendix B: Report Examples that starts on page 187 of this manual. Dependencies The SQL script examples used in this chapter and other chapters in this manual show only the portable ANSI statements and syntax. The exact SQL statement that you use depends on your RDBMS. When using Report Writer with ACCELL/SQL, see for database dependencies. 44 Developing a Report Script

45 Building the Report Script Sections A report script is made up of four report script sections: input environment SQL report format The input, environment, and SQL sections are only used in an irs report script. The report script sections are shown in the following script: INPUT_SECTION PROMPT What is the bottom of the salary range? [NUMERIC] PROMPT What is the top of the salary range? [NUMERIC] report script section ENVIRONMENT_SECTION PIPE= tee current_mo lpr SQL_SECTION... select Name, Job, Salary, Commission from emp where Salary > $1 and Salary < $2... RPT_SECTION employee report input emp_name [string 10], emp_job [string 10], emp_salary [amount 4], emp_commission [amount 4] before report print Employee Report: Salaries from $1 to $2 detail print emp_name, emp_job, emp_salary end Tip You can add text comments to your script to document the report. Comments embedded in the SQL section must conform to the RDBMS SQL utility s syntax. Comments in the report format section must use the convention /* comment */ and cannot be more than one line. Comments put in other sections of the script are indicated by at the start of the line or delimited by /* comment */. Developing a Report Script 45

46 Input Section The irs input script section contains the user prompts and validation specifications for parameter value retrieval. By default, Report Writer uses scrolling to display the user prompts on the screen sequentially. The input section must start with the INPUT_SECTION script section identifier. INPUT_SECTION PROMPT What is the bottom of the salary range? [NUMERIC] PROMPT What is the top of the salary range? [NUMERIC] SQL_SECTION... select Name, Job, Salary, Commission from emp where Salary > $1 and Salary < $2... RPT_SECTION employee report input emp_name [string 10], emp_job [string 10], emp_salary [amount 4], emp_commission [amount 4] before report print Employee Report: Salaries from $1 to $2 detail print emp_name, emp_job, emp_salary, emp_commission end Valid script section statements for the input section are: PROMPT MESSAGE The PROMPT statement controls the display of the parameter prompt and parameter value validation. PROMPT text can be enclosed by single ( ) or double ( ) quotes. The MESSAGE statement defines a text string to display before its corresponding PROMPT statement. A MESSAGE statement is matched with the PROMPT statement that it precedes. MESSAGE statements after the last PROMPT statement are processed after all parameter values have be entered. Tip If you want to display parameter prompt text in a format that is different from the default and you want to control input validation, you must use your own custom executable. 46 Developing a Report Script

47 Additional Help About The PROMPT and MESSAGE statements Using a custom parameter prompter See The reference pages in the Language and Function Reference chapter that starts on page 115 of this manual Adding a Custom Parameter Prompter that starts on page 66 of this manual Example This sample report script prompts the user for a low and high salary value to use in data selection and the report heading. The output from the input section is shown after the script. Input INPUT_SECTION MESSAGE Please enter values for the following range delimiters: PROMPT What is the bottom of the salary range? [NUMERIC] PROMPT What is the top of the salary range? no newline [NUMERIC] MESSAGE The report is now processing. Please wait. SQL_SECTION... select Name, Job, Salary, Commission from emp where Salary > $1 and Salary < $2... RPT_SECTION employee report input emp_name [string 10], emp_job [string 10], emp_salary [amount 4], emp_commission [amount 4] before report print Employee Report: Salaries from $1 to $2 detail print emp_name, emp_job, emp_salary, emp_commission end Output Please enter values for the following range delimiters: What is the bottom of the salary range? What is the top of the salary range? The report is now processing. Please wait. Developing a Report Script 47

48 Environment Section The irs environment report script section defines the environment in which the report script operates. These environment features include the name of the database and schema, the destination of the report output, and a debugging mode. The environment section must start with the script section identifier ENVIRONMENT_SECTION. If you do not include an environment section, these default procedures occur: the report output is sent to the standard output device the default database and schema is used processing is done in the foreground Tip All environment section specifications can be overridden or set at runtime by using the irs options. 48 Developing a Report Script

49 Additional Help About A script section statement that is valid in the environment section Using a custom parameter prompter Using a custom report format selector Overriding or setting environment section options at runtime See The reference page for the statement in the Language and Function Reference chapter that starts on page 115 of this manual Adding a Custom Parameter Prompter that starts on page 66 of this manual Adding a Custom Report Format Selector that starts on page 68 of this manual The irs Utility on page 29 and the irs reference page in Configuration Variable and Utility Reference Example This environment script section specifies that the report is to be processed as a background process, directs the report output to a file and to the line printer, and uses a custom executable to prompt for the parameter values and validate the data types. ENVIRONMENT_SECTION PIPE= tee current_mo lpr BACKGROUND PROMPTER= /usr/bin/xprompter Developing a Report Script 49

50 SQL Section The irs SQL script section contains SQL statements that are necessary to generate the report input for your report. The SQL section must start with the SQL_SECTION script section identifier. Adding Parameters to a SQL Query You can add flexibility to your SQL queries by using parameters to show that a value will be supplied by the end user at runtime. Parameters are indicated by including a parameter place holder in the SQL script. Place holders have the format: $number. At runtime, you can display a text string that prompts the end user for a parameter value. You can also validate the parameter value s data type. The prompt string text and data type validation are defined in the input section. The place holder $1 gets the value of the first supplied prompt value, place holder $2 gets the value of the second prompt value, and so on. After the end user enters the parameter values at the prompts, Report Writer replaces the parameter value for all corresponding place holders in the report script. Additional Help About Creating an SQL script The SQL_SECTION statement See Your SQL manual The reference page in the Language and Function Reference chapter that starts on page 115 of this manual Example This example shows a SQL query with parameters. SQL_SECTION... select Name, Job, Salary, Commission from emp where Salary > $1 and Salary < $2... parameter place holders 50 Developing a Report Script

51 Report Format Section The report format section contains Report Writer language that formats and organizes your input data for output. Multiple report format sections can be included in a report script when using the irs utility. Multiple formats give the end user a selection of different reports while using the same input data. If you use an input, SQL, or environment script section in your report script, you must start each report format section with the RPT_SECTION identifier. Tip If you only have one format section in your report script and have not included the INPUT_SECTION, SQL_SECTION, RPT_SECTION, or ENVIRONMENT_SECTION statement, you can run your report script by using the RPT utility. Syntax The syntax for the report format script section is shown below: The input statement must be first report format section statement and the end statement must be the last. Otherwise, statements and event sections can be in any order. You must include no less than one event section in each format section. Developing a Report Script 51

52 The following are valid statements in a report format script: Selecting From Multiple Report Formats The RPT_SECTION identifier s reportname argument is used to identify the format script when two or more format sections are in the report script. Report format selection is done at runtime with an irs option or with your own selector executable that you specify either in the environment section or on the irs command line with the OSELECTOR option. When using irs and a report with multiple report format sections, you are prompted for a report format selection by reportname. Adding Parameters to a Format Script When you prompt the end user for report script parameter values, you can put those values into the report format sections. This substitution is done by putting parameter place holders in the report format statements. Example This report format section accepts an input data line with four columns and prints a report line for each. RPT_SECTION employee report input emp_name [string 10], emp_job [string 10], emp_salary [amount 4], emp_commission [amount 4] detail print emp_name, emp_job, emp_salary, emp_commission end 52 Developing a Report Script

53 This second format section example shows how parameter substitution can be used. RPT_SECTION history report input history.name, history.tx_type, history.h_date before report print The reporting date range is $1 to $2 detail print history.name, history.tx_type, history.h_date end Additional Help About Running a report format script by using the RPT utility Any script section statement that is valid in a report format section Report format section commands and how to writing a format script Using a custom report format selector See The RPT Utility on page 32 of this manual and the reference page in Configuration Variable and Utility Reference The reference page in the Language and Function Reference chapter that starts on page 115 of this manual Writing a Report Format Section that starts on page 54 of this manual Adding a Custom Report Format Selector that starts on page 68 of this manual Developing a Report Script 53

54 Writing a Report Format Section This section describes the report format section. When writing a report format section, an understanding of these topics is necessary: report format section syntax the input statement event sections format section statements variables and expressions local functions string variables The report format section contains all the statements necessary to format and organize your input data. Report Format Section Syntax As a review, a report format section has the following syntax: Event sections are groups of format section statements that are to be executed when an event occurs. You can only use an event section one time in the report format section. Format section statements are statements that can only be used in a report format section. 54 Developing a Report Script

55 The following illustration shows the input statement, event sections, and format statements in a report script: event section identifiers RPT_SECTION Commission report input emp_name [string 10], emp_job [string 10], emp_salary [amount 4], emp_commission [amount 4] sort emp_job before report print Employee Commission Summary: Salaries from $1 to $2 centered before emp_job skip 1 print emp_job detail print emp_name column 8, emp_commission column 24 after report skip input statement format section statements print Average Commission for all Employees: column 20, avg(emp_commission) end The recognized events and their corresponding event sections are shown below. The list also shows the hierarchy in which the event section are processed: beginning of the report end of the report top on new page bottom of current page before a change in a sort key value new input line after a change in a sort key value before report after report header footer before sort_key detail after sort_key A report script must contain not less than one event section. Simple reports can be produced using only the detail section. Summary reports are produced using only the after report section. Event sections can appear in any order in the report script. Sections are processed when the specified event occurs, not by the order they appear in the script. An event section is ended by another event section identifier, or the end, bottom margin, input, left margin, length, separator, sort, top margin, or width statements. Developing a Report Script 55

56 An event section does not have to contain any statements. For example, the section identifier header can be in the script as a reminder to add the appropriate format statements later. In event sections other than after report, format section statements can name and use a report expression the first time. The expression can then be used throughout the report by its name. Additional Help About How Report Writer works Report Writer expression See How Report Writer Processes a Report Script that starts on page 19 of this manual The Report Writer Expressions chapter that starts on page 77 The input Statement The input statement assigns a report column name to each column of data in the input file. You use the report data column name to refer to the column throughout the script. The column names in the input section must be in the same order as the columns in an input file row. There are two ways to specify columns in the input section: By using the database column name By giving a name to the column and specifying an optional type specification Specifying Columns Using the Database Name Report Writer lets you refer to database object names in many ways. If a database object is unique to the database, you can refer to it merely by its name. But, if the database contains some objects with the same name, you must qualify the object name until it is unique. When writing a format section, you specify column names by using this syntax: [ [schema_name.]table_name.]column_name 56 Developing a Report Script

Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.

Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved. Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement

More information

Oracle Database: SQL and PL/SQL Fundamentals

Oracle Database: SQL and PL/SQL Fundamentals Oracle University Contact Us: 1.800.529.0165 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This course is designed to deliver the fundamentals of SQL and PL/SQL along

More information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals NEW Oracle University Contact Us: + 38516306373 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training delivers the

More information

Oracle SQL. Course Summary. Duration. Objectives

Oracle SQL. Course Summary. Duration. Objectives Oracle SQL Course Summary Identify the major structural components of the Oracle Database 11g Create reports of aggregated data Write SELECT statements that include queries Retrieve row and column data

More information

Oracle Database: SQL and PL/SQL Fundamentals

Oracle Database: SQL and PL/SQL Fundamentals Oracle University Contact Us: +966 12 739 894 Oracle Database: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals training is designed to

More information

KB_SQL SQL Reference Guide Version 4

KB_SQL SQL Reference Guide Version 4 KB_SQL SQL Reference Guide Version 4 1995, 1999 by KB Systems, Inc. All rights reserved. KB Systems, Inc., Herndon, Virginia, USA. Printed in the United States of America. No part of this manual may be

More information

3.GETTING STARTED WITH ORACLE8i

3.GETTING STARTED WITH ORACLE8i Oracle For Beginners Page : 1 3.GETTING STARTED WITH ORACLE8i Creating a table Datatypes Displaying table definition using DESCRIBE Inserting rows into a table Selecting rows from a table Editing SQL buffer

More information

Oracle Database 12c: Introduction to SQL Ed 1.1

Oracle Database 12c: Introduction to SQL Ed 1.1 Oracle University Contact Us: 1.800.529.0165 Oracle Database 12c: Introduction to SQL Ed 1.1 Duration: 5 Days What you will learn This Oracle Database: Introduction to SQL training helps you write subqueries,

More information

Data Tool Platform SQL Development Tools

Data Tool Platform SQL Development Tools Data Tool Platform SQL Development Tools ekapner Contents Setting SQL Development Preferences...5 Execution Plan View Options Preferences...5 General Preferences...5 Label Decorations Preferences...6

More information

Postgres Plus xdb Replication Server with Multi-Master User s Guide

Postgres Plus xdb Replication Server with Multi-Master User s Guide Postgres Plus xdb Replication Server with Multi-Master User s Guide Postgres Plus xdb Replication Server with Multi-Master build 57 August 22, 2012 , Version 5.0 by EnterpriseDB Corporation Copyright 2012

More information

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff

Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff D80198GC10 Oracle Database 12c SQL and Fundamentals Summary Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff Level Professional Delivery Method Instructor-led

More information

Oracle Database: SQL and PL/SQL Fundamentals NEW

Oracle Database: SQL and PL/SQL Fundamentals NEW Oracle University Contact Us: 001-855-844-3881 & 001-800-514-06-97 Oracle Database: SQL and PL/SQL Fundamentals NEW Duration: 5 Days What you will learn This Oracle Database: SQL and PL/SQL Fundamentals

More information

Microsoft Dynamics GP. Extender User s Guide

Microsoft Dynamics GP. Extender User s Guide Microsoft Dynamics GP Extender User s Guide Copyright Copyright 2010 Microsoft. All rights reserved. Limitation of liability This document is provided as-is. Information and views expressed in this document,

More information

Participant Guide RP301: Ad Hoc Business Intelligence Reporting

Participant Guide RP301: Ad Hoc Business Intelligence Reporting RP301: Ad Hoc Business Intelligence Reporting State of Kansas As of April 28, 2010 Final TABLE OF CONTENTS Course Overview... 4 Course Objectives... 4 Agenda... 4 Lesson 1: Reviewing the Data Warehouse...

More information

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC MyOra 3.0 SQL Tool for Oracle User Guide Jayam Systems, LLC Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL

More information

Qlik REST Connector Installation and User Guide

Qlik REST Connector Installation and User Guide Qlik REST Connector Installation and User Guide Qlik REST Connector Version 1.0 Newton, Massachusetts, November 2015 Authored by QlikTech International AB Copyright QlikTech International AB 2015, All

More information

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide Open Crystal Reports From the Windows Start menu choose Programs and then Crystal Reports. Creating a Blank Report Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick

More information

Welcome to the topic on queries in SAP Business One.

Welcome to the topic on queries in SAP Business One. Welcome to the topic on queries in SAP Business One. 1 In this topic, you will learn to create SQL queries using the SAP Business One query tools Query Wizard and Query Generator. You will also see how

More information

Data Integrator. Pervasive Software, Inc. 12365-B Riata Trace Parkway Austin, Texas 78727 USA

Data Integrator. Pervasive Software, Inc. 12365-B Riata Trace Parkway Austin, Texas 78727 USA Data Integrator Event Management Guide Pervasive Software, Inc. 12365-B Riata Trace Parkway Austin, Texas 78727 USA Telephone: 888.296.5969 or 512.231.6000 Fax: 512.231.6010 Email: info@pervasiveintegration.com

More information

Integrating VoltDB with Hadoop

Integrating VoltDB with Hadoop The NewSQL database you ll never outgrow Integrating with Hadoop Hadoop is an open source framework for managing and manipulating massive volumes of data. is an database for handling high velocity data.

More information

Introduction to Microsoft Jet SQL

Introduction to Microsoft Jet SQL Introduction to Microsoft Jet SQL Microsoft Jet SQL is a relational database language based on the SQL 1989 standard of the American Standards Institute (ANSI). Microsoft Jet SQL contains two kinds of

More information

Microsoft Access 2010 Overview of Basics

Microsoft Access 2010 Overview of Basics Opening Screen Access 2010 launches with a window allowing you to: create a new database from a template; create a new template from scratch; or open an existing database. Open existing Templates Create

More information

DBF Chapter. Note to UNIX and OS/390 Users. Import/Export Facility CHAPTER 7

DBF Chapter. Note to UNIX and OS/390 Users. Import/Export Facility CHAPTER 7 97 CHAPTER 7 DBF Chapter Note to UNIX and OS/390 Users 97 Import/Export Facility 97 Understanding DBF Essentials 98 DBF Files 98 DBF File Naming Conventions 99 DBF File Data Types 99 ACCESS Procedure Data

More information

Business Enterprise Server Help Desk Integration Guide. Version 3.5

Business Enterprise Server Help Desk Integration Guide. Version 3.5 Business Enterprise Server Help Desk Integration Guide Version 3.5 June 30, 2010 Copyright Copyright 2003 2010 Interlink Software Services, Ltd., as an unpublished work. All rights reserved. Interlink

More information

Tips and Tricks SAGE ACCPAC INTELLIGENCE

Tips and Tricks SAGE ACCPAC INTELLIGENCE Tips and Tricks SAGE ACCPAC INTELLIGENCE 1 Table of Contents Auto e-mailing reports... 4 Automatically Running Macros... 7 Creating new Macros from Excel... 8 Compact Metadata Functionality... 9 Copying,

More information

Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro

Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro Lab 9 Access PreLab Copy the prelab folder, Lab09 PreLab9_Access_intro, to your M: drive. To do the second part of the prelab, you will need to have available a database from that folder. Creating a new

More information

Hypercosm. Studio. www.hypercosm.com

Hypercosm. Studio. www.hypercosm.com Hypercosm Studio www.hypercosm.com Hypercosm Studio Guide 3 Revision: November 2005 Copyright 2005 Hypercosm LLC All rights reserved. Hypercosm, OMAR, Hypercosm 3D Player, and Hypercosm Studio are trademarks

More information

Access 2003 Introduction to Queries

Access 2003 Introduction to Queries Access 2003 Introduction to Queries COPYRIGHT Copyright 1999 by EZ-REF Courseware, Laguna Beach, CA http://www.ezref.com/ All rights reserved. This publication, including the student manual, instructor's

More information

JavaScript: Introduction to Scripting. 2008 Pearson Education, Inc. All rights reserved.

JavaScript: Introduction to Scripting. 2008 Pearson Education, Inc. All rights reserved. 1 6 JavaScript: Introduction to Scripting 2 Comment is free, but facts are sacred. C. P. Scott The creditor hath a better memory than the debtor. James Howell When faced with a decision, I always ask,

More information

Eventia Log Parsing Editor 1.0 Administration Guide

Eventia Log Parsing Editor 1.0 Administration Guide Eventia Log Parsing Editor 1.0 Administration Guide Revised: November 28, 2007 In This Document Overview page 2 Installation and Supported Platforms page 4 Menus and Main Window page 5 Creating Parsing

More information

Rational Rational ClearQuest

Rational Rational ClearQuest Rational Rational ClearQuest Version 7.0 Windows Using Project Tracker GI11-6377-00 Rational Rational ClearQuest Version 7.0 Windows Using Project Tracker GI11-6377-00 Before using this information, be

More information

DataPA OpenAnalytics End User Training

DataPA OpenAnalytics End User Training DataPA OpenAnalytics End User Training DataPA End User Training Lesson 1 Course Overview DataPA Chapter 1 Course Overview Introduction This course covers the skills required to use DataPA OpenAnalytics

More information

Oracle Database 10g: Introduction to SQL

Oracle Database 10g: Introduction to SQL Oracle University Contact Us: 1.800.529.0165 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database technology.

More information

MICROSOFT ACCESS STEP BY STEP GUIDE

MICROSOFT ACCESS STEP BY STEP GUIDE IGCSE ICT SECTION 11 DATA MANIPULATION MICROSOFT ACCESS STEP BY STEP GUIDE Mark Nicholls ICT Lounge P a g e 1 Contents Task 35 details Page 3 Opening a new Database. Page 4 Importing.csv file into the

More information

Microsoft s new database modeling tool: Part 1

Microsoft s new database modeling tool: Part 1 Microsoft s new database modeling tool: Part 1 Terry Halpin Microsoft Corporation Abstract: This is the first in a series of articles introducing the Visio-based database modeling component of Microsoft

More information

Creating QBE Queries in Microsoft SQL Server

Creating QBE Queries in Microsoft SQL Server Creating QBE Queries in Microsoft SQL Server When you ask SQL Server or any other DBMS (including Access) a question about the data in a database, the question is called a query. A query is simply a question

More information

UNISYS. Business Information Server. MRI Administration and User s Guide. Printed in USA May 2004 7846 0391 013

UNISYS. Business Information Server. MRI Administration and User s Guide. Printed in USA May 2004 7846 0391 013 Business Information Server MRI Administration and User s Guide UNISYS 2004 Unisys Corporation. All rights reserved. Printed in USA May 2004 7846 0391 013 NO WARRANTIES OF ANY NATURE ARE EXTENDED BY THIS

More information

MyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy

MyOra 3.5. User Guide. SQL Tool for Oracle. Kris Murthy MyOra 3.5 SQL Tool for Oracle User Guide Kris Murthy Contents Features... 4 Connecting to the Database... 5 Login... 5 Login History... 6 Connection Indicator... 6 Closing the Connection... 7 SQL Editor...

More information

Oracle Database: Introduction to SQL

Oracle Database: Introduction to SQL Oracle University Contact Us: +381 11 2016811 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn Understanding the basic concepts of relational databases ensure refined code by developers.

More information

Portal Connector Fields and Widgets Technical Documentation

Portal Connector Fields and Widgets Technical Documentation Portal Connector Fields and Widgets Technical Documentation 1 Form Fields 1.1 Content 1.1.1 CRM Form Configuration The CRM Form Configuration manages all the fields on the form and defines how the fields

More information

Basic Excel Handbook

Basic Excel Handbook 2 5 2 7 1 1 0 4 3 9 8 1 Basic Excel Handbook Version 3.6 May 6, 2008 Contents Contents... 1 Part I: Background Information...3 About This Handbook... 4 Excel Terminology... 5 Excel Terminology (cont.)...

More information

Microsoft Access 2010 Part 1: Introduction to Access

Microsoft Access 2010 Part 1: Introduction to Access CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES Microsoft Access 2010 Part 1: Introduction to Access Fall 2014, Version 1.2 Table of Contents Introduction...3 Starting Access...3

More information

9.1 SAS. SQL Query Window. User s Guide

9.1 SAS. SQL Query Window. User s Guide SAS 9.1 SQL Query Window User s Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS 9.1 SQL Query Window User s Guide. Cary, NC: SAS Institute Inc. SAS

More information

MS Access Lab 2. Topic: Tables

MS Access Lab 2. Topic: Tables MS Access Lab 2 Topic: Tables Summary Introduction: Tables, Start to build a new database Creating Tables: Datasheet View, Design View Working with Data: Sorting, Filtering Help on Tables Introduction

More information

SAP Data Services 4.X. An Enterprise Information management Solution

SAP Data Services 4.X. An Enterprise Information management Solution SAP Data Services 4.X An Enterprise Information management Solution Table of Contents I. SAP Data Services 4.X... 3 Highlights Training Objectives Audience Pre Requisites Keys to Success Certification

More information

www.gr8ambitionz.com

www.gr8ambitionz.com Data Base Management Systems (DBMS) Study Material (Objective Type questions with Answers) Shared by Akhil Arora Powered by www. your A to Z competitive exam guide Database Objective type questions Q.1

More information

Oracle Database: Introduction to SQL

Oracle Database: Introduction to SQL Oracle University Contact Us: 1.800.529.0165 Oracle Database: Introduction to SQL Duration: 5 Days What you will learn View a newer version of this course This Oracle Database: Introduction to SQL training

More information

JetBrains ReSharper 2.0 Overview Introduction ReSharper is undoubtedly the most intelligent add-in to Visual Studio.NET 2003 and 2005. It greatly increases the productivity of C# and ASP.NET developers,

More information

Chapter 1. Writing Basic. SQL Statements

Chapter 1. Writing Basic. SQL Statements Chapter 1 Writing Basic SQL Statements 1 Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement

More information

Jet Data Manager 2012 User Guide

Jet Data Manager 2012 User Guide Jet Data Manager 2012 User Guide Welcome This documentation provides descriptions of the concepts and features of the Jet Data Manager and how to use with them. With the Jet Data Manager you can transform

More information

Import Filter Editor User s Guide

Import Filter Editor User s Guide Reference Manager Windows Version Import Filter Editor User s Guide April 7, 1999 Research Information Systems COPYRIGHT NOTICE This software product and accompanying documentation is copyrighted and all

More information

Ad Hoc Advanced Table of Contents

Ad Hoc Advanced Table of Contents Ad Hoc Advanced Table of Contents Functions... 1 Adding a Function to the Adhoc Query:... 1 Constant... 2 Coalesce... 4 Concatenate... 6 Add/Subtract... 7 Logical Expressions... 8 Creating a Logical Expression:...

More information

Access Queries (Office 2003)

Access Queries (Office 2003) Access Queries (Office 2003) Technical Support Services Office of Information Technology, West Virginia University OIT Help Desk 293-4444 x 1 oit.wvu.edu/support/training/classmat/db/ Instructor: Kathy

More information

Creating Custom Crystal Reports Tutorial

Creating Custom Crystal Reports Tutorial Creating Custom Crystal Reports Tutorial 020812 2012 Blackbaud, Inc. This publication, or any part thereof, may not be reproduced or transmitted in any form or by any means, electronic, or mechanical,

More information

Advanced Query for Query Developers

Advanced Query for Query Developers for Developers This is a training guide to step you through the advanced functions of in NUFinancials. is an ad-hoc reporting tool that allows you to retrieve data that is stored in the NUFinancials application.

More information

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1

MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 MAS 500 Intelligence Tips and Tricks Booklet Vol. 1 1 Contents Accessing the Sage MAS Intelligence Reports... 3 Copying, Pasting and Renaming Reports... 4 To create a new report from an existing report...

More information

Chapter 5. Microsoft Access

Chapter 5. Microsoft Access Chapter 5 Microsoft Access Topic Introduction to DBMS Microsoft Access Getting Started Creating Database File Database Window Table Queries Form Report Introduction A set of programs designed to organize,

More information

Intro to Excel spreadsheets

Intro to Excel spreadsheets Intro to Excel spreadsheets What are the objectives of this document? The objectives of document are: 1. Familiarize you with what a spreadsheet is, how it works, and what its capabilities are; 2. Using

More information

Performing Queries Using PROC SQL (1)

Performing Queries Using PROC SQL (1) SAS SQL Contents Performing queries using PROC SQL Performing advanced queries using PROC SQL Combining tables horizontally using PROC SQL Combining tables vertically using PROC SQL 2 Performing Queries

More information

Producing Readable Output with SQL*Plus

Producing Readable Output with SQL*Plus Producing Readable Output with SQL*Plus Chapter 8 Objectives After completing this lesson, you should be able to do the following: Produce queries that require an input variable Customize the SQL*Plus

More information

Creating and Using Databases with Microsoft Access

Creating and Using Databases with Microsoft Access CHAPTER A Creating and Using Databases with Microsoft Access In this chapter, you will Use Access to explore a simple database Design and create a new database Create and use forms Create and use queries

More information

Introduction to Python

Introduction to Python WEEK ONE Introduction to Python Python is such a simple language to learn that we can throw away the manual and start with an example. Traditionally, the first program to write in any programming language

More information

Control-D CA-DISPATCH Conversion Guide

Control-D CA-DISPATCH Conversion Guide Control-D CA-DISPATCH Conversion Guide Supporting Version 7.0.00 of Control-D September 2010 www.bmc.com Contacting BMC Software You can access the BMC Software website at http://www.bmc.com. From this

More information

SonicWALL GMS Custom Reports

SonicWALL GMS Custom Reports SonicWALL GMS Custom Reports Document Scope This document describes how to configure and use the SonicWALL GMS 6.0 Custom Reports feature. This document contains the following sections: Feature Overview

More information

SQL - QUICK GUIDE. Allows users to access data in relational database management systems.

SQL - QUICK GUIDE. Allows users to access data in relational database management systems. http://www.tutorialspoint.com/sql/sql-quick-guide.htm SQL - QUICK GUIDE Copyright tutorialspoint.com What is SQL? SQL is Structured Query Language, which is a computer language for storing, manipulating

More information

BID2WIN Workshop. Advanced Report Writing

BID2WIN Workshop. Advanced Report Writing BID2WIN Workshop Advanced Report Writing Please Note: Please feel free to take this workbook home with you! Electronic copies of all lab documentation are available for download at http://www.bid2win.com/userconf/2011/labs/

More information

REPORT GENERATION USING SQL*PLUS COMMANDS

REPORT GENERATION USING SQL*PLUS COMMANDS Oracle For Beginners Page : 1 Chapter 14 REPORT GENERATION USING SQL*PLUS COMMANDS What is a report? Sample report Report script Break command Compute command Column command Ttitle and Btitle commands

More information

Exploring Microsoft Office Access 2007. Chapter 2: Relational Databases and Multi-Table Queries

Exploring Microsoft Office Access 2007. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office Access 2007 Chapter 2: Relational Databases and Multi-Table Queries 1 Objectives Design data Create tables Understand table relationships Share data with Excel Establish table

More information

J j enterpririse. Oracle Application Express 3. Develop Native Oracle database-centric web applications quickly and easily with Oracle APEX

J j enterpririse. Oracle Application Express 3. Develop Native Oracle database-centric web applications quickly and easily with Oracle APEX Oracle Application Express 3 The Essentials and More Develop Native Oracle database-centric web applications quickly and easily with Oracle APEX Arie Geller Matthew Lyon J j enterpririse PUBLISHING BIRMINGHAM

More information

Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C

Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C Embedded Systems A Review of ANSI C and Considerations for Embedded C Programming Dr. Jeff Jackson Lecture 2-1 Review of ANSI C Topics Basic features of C C fundamentals Basic data types Expressions Selection

More information

Using Temporary Tables to Improve Performance for SQL Data Services

Using Temporary Tables to Improve Performance for SQL Data Services Using Temporary Tables to Improve Performance for SQL Data Services 2014- Informatica Corporation. No part of this document may be reproduced or transmitted in any form, by any means (electronic, photocopying,

More information

DBMaster. Backup Restore User's Guide P-E5002-Backup/Restore user s Guide Version: 02.00

DBMaster. Backup Restore User's Guide P-E5002-Backup/Restore user s Guide Version: 02.00 DBMaster Backup Restore User's Guide P-E5002-Backup/Restore user s Guide Version: 02.00 Document No: 43/DBM43-T02232006-01-BARG Author: DBMaster Production Team, Syscom Computer Engineering CO. Publication

More information

Using This Reference Manual Chapter 1 to Issue ACL Commands

Using This Reference Manual Chapter 1 to Issue ACL Commands Copyright 1998 ACL Services Ltd. All rights reserved No part of this manual may be reproduced or transmitted in any form by any means, electronic or mechanical, including photocopying and recording, information

More information

Regular Expressions. General Concepts About Regular Expressions

Regular Expressions. General Concepts About Regular Expressions Regular Expressions This appendix explains regular expressions and how to use them in Cisco IOS software commands. It also provides details for composing regular expressions. This appendix has the following

More information

Silect Software s MP Author

Silect Software s MP Author Silect MP Author for Microsoft System Center Operations Manager Silect Software s MP Author User Guide September 2, 2015 Disclaimer The information in this document is furnished for informational use only,

More information

Cisco Cius Development Guide Version 1.0 September 30, 2010

Cisco Cius Development Guide Version 1.0 September 30, 2010 Cisco Cius Development Guide Version 1.0 September 30, 2010 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS

More information

Information and Computer Science Department ICS 324 Database Systems Lab#11 SQL-Basic Query

Information and Computer Science Department ICS 324 Database Systems Lab#11 SQL-Basic Query Information and Computer Science Department ICS 324 Database Systems Lab#11 SQL-Basic Query Objectives The objective of this lab is to learn the query language of SQL. Outcomes After completing this Lab,

More information

Custom Reporting System User Guide

Custom Reporting System User Guide Citibank Custom Reporting System User Guide April 2012 Version 8.1.1 Transaction Services Citibank Custom Reporting System User Guide Table of Contents Table of Contents User Guide Overview...2 Subscribe

More information

Intellicus Enterprise Reporting and BI Platform

Intellicus Enterprise Reporting and BI Platform Designing Adhoc Reports Intellicus Enterprise Reporting and BI Platform Intellicus Technologies info@intellicus.com www.intellicus.com Copyright 2013 Intellicus Technologies This document and its content

More information

History Explorer. View and Export Logged Print Job Information WHITE PAPER

History Explorer. View and Export Logged Print Job Information WHITE PAPER History Explorer View and Export Logged Print Job Information WHITE PAPER Contents Overview 3 Logging Information to the System Database 4 Logging Print Job Information from BarTender Designer 4 Logging

More information

Query and Export Guide

Query and Export Guide Query and Export Guide 011712 2012 Blackbaud, Inc. This publication, or any part thereof, may not be reproduced or transmitted in any form or by any means, electronic, or mechanical, including photocopying,

More information

Documentum Content Distribution Services TM Administration Guide

Documentum Content Distribution Services TM Administration Guide Documentum Content Distribution Services TM Administration Guide Version 5.3 SP5 August 2007 Copyright 1994-2007 EMC Corporation. All rights reserved. Table of Contents Preface... 7 Chapter 1 Introducing

More information

IRA Pivot Table Review and Using Analyze to Modify Reports. For help, email Financial.Reports@dartmouth.edu

IRA Pivot Table Review and Using Analyze to Modify Reports. For help, email Financial.Reports@dartmouth.edu IRA Pivot Table Review and Using Analyze to Modify Reports 1 What is a Pivot Table? A pivot table takes rows of detailed data (such as the lines in a downloadable table) and summarizes them at a higher

More information

Producing Listings and Reports Using SAS and Crystal Reports Krishna (Balakrishna) Dandamudi, PharmaNet - SPS, Kennett Square, PA

Producing Listings and Reports Using SAS and Crystal Reports Krishna (Balakrishna) Dandamudi, PharmaNet - SPS, Kennett Square, PA Producing Listings and Reports Using SAS and Crystal Reports Krishna (Balakrishna) Dandamudi, PharmaNet - SPS, Kennett Square, PA ABSTRACT The SAS Institute has a long history of commitment to openness

More information

Microsoft Access Basics

Microsoft Access Basics Microsoft Access Basics 2006 ipic Development Group, LLC Authored by James D Ballotti Microsoft, Access, Excel, Word, and Office are registered trademarks of the Microsoft Corporation Version 1 - Revision

More information

Oracle Essbase Integration Services. Readme. Release 9.3.3.0.00

Oracle Essbase Integration Services. Readme. Release 9.3.3.0.00 Oracle Essbase Integration Services Release 9.3.3.0.00 Readme To view the most recent version of this Readme, see the 9.3.x documentation library on Oracle Technology Network (OTN) at http://www.oracle.com/technology/documentation/epm.html.

More information

VDF Query User Manual

VDF Query User Manual VDF Query User Manual Page 1 of 25 Table of Contents Quick Start... 3 Security... 4 Main File:... 5 Query Title:... 6 Fields Tab... 7 Printed Fields... 8 Task buttons... 9 Expression... 10 Selection...

More information

SPSS: Getting Started. For Windows

SPSS: Getting Started. For Windows For Windows Updated: August 2012 Table of Contents Section 1: Overview... 3 1.1 Introduction to SPSS Tutorials... 3 1.2 Introduction to SPSS... 3 1.3 Overview of SPSS for Windows... 3 Section 2: Entering

More information

Elisabetta Zodeiko 2/25/2012

Elisabetta Zodeiko 2/25/2012 PRINCETON UNIVERSITY Report Studio Introduction Elisabetta Zodeiko 2/25/2012 Report Studio Introduction pg. 1 Table of Contents 1. Report Studio Overview... 6 Course Overview... 7 Princeton Information

More information

ORACLE BUSINESS INTELLIGENCE WORKSHOP

ORACLE BUSINESS INTELLIGENCE WORKSHOP ORACLE BUSINESS INTELLIGENCE WORKSHOP Creating Interactive Dashboards and Using Oracle Business Intelligence Answers Purpose This tutorial shows you how to build, format, and customize Oracle Business

More information

How To Write A File System On A Microsoft Office 2.2.2 (Windows) (Windows 2.3) (For Windows 2) (Minorode) (Orchestra) (Powerpoint) (Xls) (

How To Write A File System On A Microsoft Office 2.2.2 (Windows) (Windows 2.3) (For Windows 2) (Minorode) (Orchestra) (Powerpoint) (Xls) ( Remark Office OMR 8 Supported File Formats User s Guide Addendum Remark Products Group 301 Lindenwood Drive, Suite 100 Malvern, PA 19355-1772 USA www.gravic.com Disclaimer The information contained in

More information

Mini User's Guide for SQL*Plus T. J. Teorey

Mini User's Guide for SQL*Plus T. J. Teorey Mini User's Guide for SQL*Plus T. J. Teorey Table of Contents Oracle/logging-in 1 Nested subqueries 5 SQL create table/naming rules 2 Complex functions 6 Update commands 3 Save a query/perm table 6 Select

More information

COGNOS Query Studio Ad Hoc Reporting

COGNOS Query Studio Ad Hoc Reporting COGNOS Query Studio Ad Hoc Reporting Copyright 2008, the California Institute of Technology. All rights reserved. This documentation contains proprietary information of the California Institute of Technology

More information

Perl in a nutshell. First CGI Script and Perl. Creating a Link to a Script. print Function. Parsing Data 4/27/2009. First CGI Script and Perl

Perl in a nutshell. First CGI Script and Perl. Creating a Link to a Script. print Function. Parsing Data 4/27/2009. First CGI Script and Perl First CGI Script and Perl Perl in a nutshell Prof. Rasley shebang line tells the operating system where the Perl interpreter is located necessary on UNIX comment line ignored by the Perl interpreter End

More information

Excel Working with Data Lists

Excel Working with Data Lists Excel Working with Data Lists Excel Working with Data Lists Princeton University COPYRIGHT Copyright 2001 by EZ-REF Courseware, Laguna Beach, CA http://www.ezref.com/ All rights reserved. This publication,

More information

ENTERPRISE DATA WAREHOUSE PRODUCT PERFORMANCE REPORTS USER GUIDE EXTERNAL. Version: 1.0

ENTERPRISE DATA WAREHOUSE PRODUCT PERFORMANCE REPORTS USER GUIDE EXTERNAL. Version: 1.0 ENTERPRISE DATA WAREHOUSE PRODUCT PERFORMANCE REPORTS USER GUIDE EXTERNAL Version: 1.0 September 2004 Table of Contents 1.0 OVERVIEW...1 1.1 Product Performance Overview... 1 1.2 Enterprise Data Warehouse

More information

MySQL for Beginners Ed 3

MySQL for Beginners Ed 3 Oracle University Contact Us: 1.800.529.0165 MySQL for Beginners Ed 3 Duration: 4 Days What you will learn The MySQL for Beginners course helps you learn about the world's most popular open source database.

More information

Bachelors of Computer Application Programming Principle & Algorithm (BCA-S102T)

Bachelors of Computer Application Programming Principle & Algorithm (BCA-S102T) Unit- I Introduction to c Language: C is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating

More information

Excel 2003 Tutorial I

Excel 2003 Tutorial I This tutorial was adapted from a tutorial by see its complete version at http://www.fgcu.edu/support/office2000/excel/index.html Excel 2003 Tutorial I Spreadsheet Basics Screen Layout Title bar Menu bar

More information

User Management Resource Administrator. UMRA tables. User Guide

User Management Resource Administrator. UMRA tables. User Guide User Management Resource Administrator UMRA tables User Guide ii Contents Copyright 2005, Tools4Ever B.V. All rights reserved. No part of the contents of this user guide may be reproduced or transmitted

More information