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

Customizing a Report
HP NonStop SQL/MP Report Writer Guide—527213-001
4-25
Labeling Information
+> ("Earliest Delivery Date: ",
+> DELIV_DATE AS I6,
+> SKIP 1) ;
S> BREAK FOOTING R.ORDERNUM
+> ("Order", R.ORDERNUM,
+> SPACE 3,
+> "Salesperson's number: ",
+> SALESREP,
+> SKIP 1) ;
S> LIST NEXT 10;
Figure 4-12 shows the report. The DELIV_DATE value in the first footing is taken from
the last row of each customer break group. The ORDERNUM value is taken from the
last row of each order break group.
Line Numbers
The report writer provides a LINE_NUMBER function for numbering the lines of a
report. You can use one sequence for the whole report or restart the numbering at a
new page or at a new break group.
The line number is incremented at each detail line. If the detail line is printed as
multiple output lines, the number is incremented only once for each set of output lines.
Figure 4-12. Example of Break Footings
Order 200320 Salesperson's number : 223
Earliest Delivery Date : 870720
Order 200490 Salesperson's number : 226
Earliest Delivery Date : 870820
Order 300380 Salesperson's number : 226
STEVENS SUPPLY 255 4
226
3210
5505
12
6
8
BROWN MEDICAL CO 3210
5505
1
1
CENTRAL UNIVERSITY
5504
6201
6301
6400
5
16
6
7
Part No. Quantity
VST0412.vsd