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

Using SQLCI and the Report Writer
HP NonStop SQL/MP Report Writer Guide—527213-001
2-4
Setting Up Your Session Environment
truncated, and whether warning messages are displayed. Figure 2-2 illustrates the
setting and displaying options.
You can use the RESET, RESET LAYOUT, and RESET STYLE commands to reset
specific options or all options to their default values. For example, the following
commands reset the line spacing to 1 (single spacing) and reset all style options to
their default values:
>> RESET LAYOUT LINE_SPACING;
>> RESET STYLE * ;
You can enter SET, RESET, and SHOW commands at the standard SQLCI prompt
(>>) or the select-in-progress prompt (S>).
In the tasks described in this manual, you can see more illustrations of how options
affect your reports. Except for LIST_COUNT, all options are set to their default values
unless the example specifically sets the option. All examples have LIST_COUNT set to
Figure 2-2. Setting and Displaying Options
>> SET STYLE DATE_FORMAT "DA, MA Y4",
+> SUBTOTAL_LABEL "Subtotal", UNDERLINE_CHAR "=";
>> SHOW LAYOUT RIGHT_MARGIN ;
RIGHT_MARGIN 80
>> SHOW STYLE *;
-------------------------------------------------------------------------
Current STYLE Option Values
-------------------------------------------------------------------------
DATE_FORMAT DA, MA Y4
DECIMAL_POINT
.
HEADINGS ON
NEWLINE_CHAR /
NULL_DISPLAY ?
OVERFLOW_CHAR *
ROWCOUNT ON
SUBTOTAL_LABEL Subtotal
TIME_FORMAT HP2:M2:S2
UNDERLINE_CHAR =
VARCHAR_WIDTH 80
VST0202.vsd