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-24
Using the Report Writer to Produce Text From Data
Figure 2-13. Example of Using the Report Writer to Produce Text From Data
?SECTION INVOCATION
AND I.FILENAME = F.FILENAME;
REPORT TITLE "-- DATE/TIME: ", CURRENT_TIMESTAMP AS DATE * TIME *,
- - GENERATE AN OBEY FILE FOR FILEINFO COMMANDS
LIST ALL;
DETAIL "FILEINFO ", CONCAT (COL 1 STRIP, ", DETAIL;");
WHERE I.TABLENAME LIKE ?TBOL AND TABLECODE NOT BETWEEN 500 AND 599
SKIP 1, "?SECTION FILEDATA";
FROM INDEXES I, FILES F
SELECT DISTINCT F.FILENAME
WHERE TABLENAME LIKE ?TBOL AND TABLECODE NOT BETWEEN 500 AND 599;
SELECT TABLENAME FROM TABLES
REPORT TITLE "--DATE TIME: ", CURRENT_TIMESTAMP AS DATE * TIME *,
SET STYLE HEADINGS OFF;
SET STYLE HEADINGS OFF;
SET LAYOUT PAGE_LENGTH ALL;
- - GENERATE AN OBEY FILE FOR INVOKE DIRECTIVES
SET LIST_COUNT 0;
SKIP 1, "?SECTION INVOCATION";
DETAIL "INVOKE ", CONCAT (COL 1 STRIP, ";");
LIST ALL;
?SECTION INFOFILE
SET LAYOUT PAGE_LENGTH ALL;
SET LIST_COUNT 0;
- -
- -
- -
- -
VST0213.vsd