HP 3000 Manuals

Using the MPE XL :PRINT Command [ SORT-MERGE/XL General Users Guide ] MPE/iX 5.0 Documentation


SORT-MERGE/XL General Users Guide

Using the MPE XL :PRINT Command 

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.



MPE/iX 5.0 Documentation