HPlogo SORT-MERGE/XL General User's Guide > Chapter 6 SORT-MERGE/XL Commands

END

MPE documents

Complete PDF
Table of Contents
Index
Glossary

The >END command specifies the conclusion of SORT-MERGE/XL parameters. It also starts the sort or merge operation specified.

SYNTAX



  >E[ND]

DISCUSSION


The >END command indicates all commands have been specified and the SORT/XL or MERGE/XL program should begin operation.

If the terminal ($STDIN) is specified in the >INPUT command of the SORT/XL program, you enter and receive sort data from the terminal. A work file is not created. The character ? is displayed following the >END command, and the input records are typed in from the terminal.

After the >END command is issued, in an interactive session or batch job, the sort or merge operation is started. This is followed by a statistical report on the operation that is displayed on your terminal screen. This report is followed by the message END OF PROGRAM and the MPE XL colon prompt (:).

EXAMPLES


The following example shows how to use the >END command in an interactive session:

  :SORT

  HP32214A.01.00  SORT/3000 THU, JUN  4, 1987,  9:30 AM
  (C) HEWLETT-PACKARD CO. 1986

  >INPUT EMPLOYEE
  >OUTPUT COMPANY
  >KEY 1,10
  >END

                       STATISTICS
  NUMBER OF RECORDS =                     6
  NUMBER OF INTERMEDIATE PASSES =         0
  SPACE AVAILABLE (IN WORDS) =       27,047
  NUMBER OF COMPARES =                   13
  NUMBER OF SCRATCHFILES IO'S =           6
  CPU TIME (MINUTES) =                  .00
  ELAPSED TIME (MINUTES) =              .49
  RECORD SIZE (IN BYTES) =               80
  SCRATCH FILE SIZE (# SECTORS) =     3,502

  END OF PROGRAM
  : 

The following example shows what occurs when the >END command is entered after the terminal has been designated as the input device and output device. The terminal is designated as the input device by specifying * (for $STDIN) in the >INPUT command. It is designated as the output device by specifying $STDLIST in the >OUTPUT command.

  >INPUT *
  >OUTPUT $STDLIST
  >KEY 1, 4
  >END
  ?user input
  ?user input
  ?user input
  ?:EOD
  sorted data
  sorted data
  sorted data

ADDITIONAL DISCUSSION


None.




DATA


EXIT