HPlogo SORT-MERGE/XL General User's Guide > Chapter 4 Using MERGE/XL Interactively

Using the MPE XL :PRINT Command

MPE documents

Complete PDF
Table of Contents
Index
Glossary

In the examples in this chapter, you were directed back to the editor to text the output file to view the results of the merge operation. The MPE XL :PRINT command allows you to view the results of the merge operation without calling the EDIT/V subsystem. This command also allows you to print the results of the merge on the system printer.

For example, to view the results of a single key merge, as shown earlier in this chapter, you would proceed, as follows:

  :MERGE

  HP32214A.01.00  MERGE/3000 WED, JUN  3, 1987, 12:31 PM
  (C) HEWLETT-PACKARD CO. 1985
  
  >INPUT EMPLOYEE, NEWHIRES
  >OUTPUT COMPANY
  >KEY 1, 11
  >END

        <<The MERGE Statistics Appear Here>>

  :PRINT COMPANY
  ANDERSON   CHARLES    PRESIDENT          0247
  ANDERSON   CHARLES    SALES REP          3456
  ANDERSON   MARY       ACCOUNTANT         6345
  CARLSON    ROBERTA    TREASURER          3586
  FISHER     TOM        SHIPPING CLERK     7309
  JOHNSON    FRANCES    RECEPTIONIST       7943
  LANGE      ROBERT     ENGINEER           3235
  SMITH      HOWARD     DESIGNER           6794
  TAYLOR     HEATHER    SECRETARY          7272
  ZIMMER     ANDREW     ENGINEER           5739

To have a copy of this report printed on the line printer use the MPE XL :FILE command to establish the following equation:

  :FILE T;DEV=LP
  :PRINT COMPANY, *T

This equation establishes T as the file equated with the line printer. This is then backreferenced with the :PRINT command to send the file COMPANY to the line printer.




Getting a Printout of MERGE/XL Results


Chapter 5 Using SORT-MERGE/XL in Batch Mode