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

Using the Terminal as the Output File

MPE documents

Complete PDF
Table of Contents
Index
Glossary

It is possible to enter the SORT/XL subsystem, issue a series of commands, and have the results of the sort operation immediately displayed on your terminal screen. This process eliminates the need of going into EDIT/V, calling up the file, and listing its contents to see the results of a sort operation. To use the terminal as the output device use the $STDLIST parameter of the SORT/XL >OUTPUT command.

The following example shows how to sort the file EMPLOYEE based on a single key. The results are displayed on the terminal screen when you enter the >END command.

  :SORT

  HP32214A.01.00  SORT/3000 WED, JUN  3, 1987, 10:00 AM
  (C) HEWLETT-PACKARD CO. 1986

  >INPUT EMPLOYEE
  >OUTPUT $STDLIST
  >KEY 1, 11
  >END

           1         2         3         4
  123456789012345678901234567890123456789012345
  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

     <<The SORT Statistics Appear Here>>

  :

When you designate the terminal as the output file ($STDLIST), the system does not generate a system file or keep any permanent record of the sort results.




Defining Your Own Collating Sequence


Using the Terminal as the Input File and the Output File