Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
SORT-MERGE/XL General User's Guide: 900 Series HP 3000 Computer Systems > Chapter 3 Using SORT/XL Interactively

Using the MPE XL :PRINT Command

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

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.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.