SQL/MP Report Writer Guide
Table Of Contents
- What’s New in This Manual
- About This Manual
- 1 Introduction to the NonStop SQL/MP Report Writer
- 2 Using SQLCI and the Report Writer
- 3 Selecting Data for a Report
- 4 Customizing a Report
- Defining the Layout
- Specifying the Items in a Detail Line
- Naming Select List and Detail Line Items
- Organizing Rows Into Break Groups
- Labeling Information
- Formatting Data Values
- Formatting Dates and Times
- Using TACL to Pass Parameters
- Conditional Printing of Items or Line Entries
- Redefining Special Characters
- Calculating Totals
- Calculating Subtotals
- Printing Double-Byte Characters
- A Comparison of the Report Writer and the Enform Language
- Index

Introduction to the NonStop SQL/MP Report Writer
HP NonStop SQL/MP Report Writer Guide—527213-001
1-2
SQL Database Reports
SQL Database Reports
SQLCI generates a default report definition for each SELECT command you enter
during your SQLCI session. You can override characteristics of the default report by
using the layout options, style options, and report formatting commands.
Layout and style options are not related to a specific SELECT command. These
options are global; they control general properties of reports. Layout options, such as
page length and margin settings, control the appearance of a report on the screen or
printed page. Style options, such as the decimal character, underline character, or
format of dates, control the appearance of items in a report. Your current layout and
style options affect the output of any SELECT command you enter during your SQLCI
session.
Report formatting commands specify a report template, including such elements as
detail lines, titles, and footings. These commands are related to a specific SELECT
command through database column references.
The report writer uses the information in the current report definition to format your
report. You can display or print data retrieved by the SELECT command in the default
report format that exists for each SELECT command by not using any of the style
Figure 1-1. Sample Content of Tables
VST0101.vsd
PARTNUM PARTDESC PRICE QTY_AVAILABLE
212
244
255
2001
6500
6603
7102
7301
PC SILVER, 20 MB
PC GOLD, 30 MB
PC DIAMOND, 60 MB
GRAPHIC PRINTER, M1
DISK CONTROLLER
PRINTER CONTROLLER
SMART MODEM, 1200
SMART MODEM, 2400
2500.00
3000.00
4000.00
1100.00
95.00
45.00
275.00
425.00
3525
4426
3321
2100
2532
430
2200
2332
ROWS
COLUMNS
ODETAIL Table
ORDERNUM
100210
100210
100210
100210
100250
100250
-
-
800660
800660
PARTNUM
244
2001
2403
5100
244
5103
-
-
7102
7301
UNITPRICE
3500.00
1100.00
620.00
150.00
3500.00
400.00
-
-
275.00
425.00
QTY_ORDERED
3
3
6
10
4
10
-
-
6
12