HPlogo MPE/iX System Utilities Reference Manual > Chapter 23 SORT-MERGE/XL

SORT-MERGE/XL Operation

MPE documents

Complete PDF
Table of Contents
Index

Using SORT


To invoke the sort portion of SORT-MERGE/XL enter:

  SORT
  RUN SORT.PUB.SYS

SORT-MERGE/XL responds with a message similar to this:

  HP31900A.01.01  SORT/V    TUE, JAN  2, 1990,  2:58 PM
    (C) HEWLETT-PACKARD CO. 1987

It then presents a > prompt. At this prompt you must specify an INPUT file, an OUTPUT file and sort KEY(s). For example:

  > INPUT INFILE
  > OUTPUT OUTFILE
  > KEY 1,10
  > KEY 11,6
  > END

You may enter the parameters in any order. However, you must specify the keywords OUTPUT, INPUT and KEY. You must use valid MPE/iX file names. If you qualify both files with group and account names, you must have read access to the INPUT file and write access to the group and account for the OUTPUT file.

This example contains two keys, the first, beginning in byte one, which is 10 bytes long and the second, beginning in byte 11, which is six bytes long. The first key entered is the primary key. Each successive key entered is secondary to the key entered before it.

The word END indicates you are finished entering parameters and signals SORT-MERGE/XL to begin processing.

After sorting your file SORT-MERGE/XL produces a statistical display and then terminates.

If you want to terminate SORT-MERGE/XL without processing do not enter END. Instead enter:

  > EXIT

You may access the sorted OUTPUT file just as you would any other MPE/iX file.

Using MERGE


To invoke the MERGE portion of SORT-MERGE/XL enter:

  MERGE
  RUN MERGE.PUB.SYS

SORT-MERGE/XL responds with a display similar to:

  HP31900A.01.01  MERGE/V    TUE, JAN  2, 1990,  3:54 PM
    (C) HEWLETT-PACKARD CO. 1987

It then presents a > prompt. At this prompt you must supply INPUT file(s) an OUTPUT file and SORT key(s).

For example:

  > INPUT INFILE1, INFILE2,... INFILEN
  > OUTPUT OUTFILE
  > KEY 1,12
  > END

You may enter the parameters in any order. However, you must specify the keywords INPUT, OUTPUT and KEY. You may enter file names on one line separated by commas (as in the example), or you may enter each on a separate line with the keyword INPUT.

The OUTPUT file is the file to which the merged files will be written. In this example there is only one key. It begins in byte one and is 12 bytes long.

The word END indicates you are finished entering parameters and signals SORT-MERGE/XL to begin processing.

After merging your files SORT-MERGE/XL produces a statistical display and then terminates.

If you want to terminate SORT-MERGE/XL without processing do not enter END. Instead enter:

  EXIT

You may access the sorted OUTPUT file just as you would any other MPE/iX file.

Additional Discussion


For more information refer to the SORT-MERGE/XL General User's Guide.




Chapter 23 SORT-MERGE/XL


Chapter 24 SPIFF