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-21
Using the Report Writer to Produce Text From Data
RPXSTATS produces the following three files:
•
SQLUPDS, for the statistics
•
FILEINF, an intermediate command file that creates the SQLFILES file
•
SQLFILES, a file for the INVOKE directives and FILEINFO commands
The RUNXREPS command file purges any pre-existing data from these files using the
CLEAR option. Therefore, you need to rename SQLFILES and SQLUPDS to save
them if you want to evoke the RUNXREPS command file more than once.
The following example illustrates the RUNXREPS command file. Note that the file
named FILEINF created by the OUT_REPORT command is then immediately invoked
by the OBEY FILEINF command.
OUT_REPORT SQLUPDS CLEAR;
OBEY RPXSTATS(COLSTATS, BASETAB, INDEXNFILES);
OUT_REPORT FILEINF CLEAR;
OBEY RPXSTATS(INVOCATION,INFOFILE);
OUT_REPORT ;
OUT SQLFILES CLEAR;
OBEY FILEINF (INVOCATION,FILEDATA);
OUT ;
Figure 2-11, Figure 2-12, and Figure 2-13 illustrate the RPXSTATS command file.