SORT-MERGE/XL Programmer's Guide (32650-90884)

59
5 Getting SORT-MERGE/XL Information
SORT-MERGE/XL provides statistical information about the sorting or merging operation
just completed, and title and version information about SORT-MERGE/XL.
The HPSORTSTAT and HPMERGESTAT intrinsics display status information about their
processes. The HPSORTTITLE and HPMERGETITLE intrinsics display title and version
information for their processes.
As shown in Figure 5-1. you may get title and version information at any point in your
program. Statistical information is retreived after you have finished sorting or merging.
Figure 5-1. Getting Information
Redirecting Output
When you report statistics, title and version information, or error messages from
SORT-MERGE/XL, this information is displayed to $STDLIST.
If you want this information in a file instead, you must redirect the output. To do this,
build a file and tell MPE XL to put all the output meant for $STDLIST into the file. For
example, to build a file named OUTFILE, use the BUILD command:
:BUILD OUTFILE;REC=-80,,,ASCII;DEV=DISC
To redirect output from the program SORTPROG to the file OUTFILE, specify at run time: