In the examples in this chapter, you were directed back to
the editor to text the output file to view the results of the sort
operation. The MPE XL :PRINT command allows you to view the results of the
sort operation without calling EDIT/V. The command also allows you
to print the results of the sort on the system printer.
For example, to view the results of a single key sort, as
shown earlier in this chapter, you would proceed, as follows:
:SORT HP32214A.01.00 SORT/3000 WED, JUN 3, 1987, 9:16 AM © HEWLETT-PACKARD CO. 1986 >INPUT EMPLOYEE >OUTPUT COMPANY >KEY 1, 11 >END <<The SORT Statistics Appear Here>> :PRINT COMPANY ANDERSON MARY ACCOUNTANT 6345 ANDERSON CHARLES SALES REP 3456 ANDERSON CHARLES PRESIDENT 0247 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. That
is then backreferenced with the :PRINT command to send the file COMPANY to the line printer.