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-14
Report Writer Components
Report Function
Report functions provide timestamps (both current and for a specified date and time),
the current line number, and the current page number. The report functions are
summarized in Table 1-5.
SQLCI Commands
Table 1-6 summarizes the SQLCI commands that are useful when generating reports.
Table 1-4. Layout Options
Layout Option Default What the Option Defines
CENTER_REPORT OFF Centering of the entire report
LEFT_MARGIN 0 Left margin of the report
LINE_SPACING 1 Number of lines to advance before the next
line
LOGICAL_FOLDING ON Whether an item of the default detail line
moves to the next line when the item does
not fit within the margins
PAGE_COUNT ALL Maximum number of pages
PAGE_LENGTH ALL (terminal)
60 (other devices)
Number of lines per page
RIGHT_MARGIN Output device
width
Right margin of the report
SPACE 2 Number of single-byte spaces between
columns
WINDOW TAB 1 Print item or print position to display at the
left edge of the output device
Table 1-5. Report Functions
Function Value Returned
COMPUTE_TIMESTAMP Timestamp for a specified date and time
CURRENT_TIMESTAMP Timestamp for the current date and time
LINE_NUMBER Current line number within a break group, page, or report
PAGE_NUMBER Current page number