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-9
Defining the Layout
LINE_SPACING
This layout option indicates to the report writer how many lines to
advance between report lines. The default setting for
LINE_SPACING when you begin an SQLCI session is 1, which
results in a single-spaced report. For double spacing, enter the
following:
>> SET LAYOUT LINE_SPACING 2;
SKIP clause
You can specify a SKIP clause as a print item in a detail line, title,
or footing. SKIP advances the number of lines you specify before
displaying or printing the next item. The LINE_SPACING option
defines the increment for the SKIP clause.
For example, suppose LINE_SPACING is 1. The following detail
line specifies that the supplier number and name appear on one
line; the street on the next line; and the city, state, and postal code
on the following line:
S> DETAIL SUPPNUM, SUPPNAME, SKIP 1, STREET,
+> SKIP 1, CITY, STATE, POSTCODE;
If you set LINE_SPACING to 2 before printing the report, a blank
line appears between each output line. SKIP 1 advances 2 lines
(SKIP
number * LINE_SPACING number).
SPACE option
The SPACE layout option specifies the default number of single-
byte spaces between print items of a detail line as follows:
>> SET LAYOUT SPACE 3;
The number you specify stays in effect until you end your SQLCI
session or change the number. The default setting when you begin
an SQLCI session is 2 spaces. The report writer does not insert
spaces preceding or following a string literal unless you specify a
heading for the string.