HPlogo MPE/iX Quick Reference Guide: HP 3000 MPE/iX Computer Systems > Chapter 5 SORT-MERGE/XL Commands

Description of SORT-MERGE/XL Commands

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

To Initiate SORT

   RUN SORT.PUB.SYS

ALTSEQ

The ALTSEQ command defines a collating sequence other than the standard ASCII or EBCDIC format. The ALTSEQ command must be preceded by a DATA command. It is effective only if the keys are of type BYTE and if the input data is ASCII.

   A[LTSEQ]modspec1[,modspec2]...[, modspecN]

[EACH]leftspec{=
<blank>
WITH} rightspec
or
MERGE leftspec {WITH
<blank>
= } rightspec

To specify leftspec and rightspec use the following form:

   {string
num byte
range string }

DATA

Specifies the type of the input data (either ASCII or EBCDIC) and the basic collating sequence to be used in the particular SORT/XL (or MERGE/XL) operation. The collating sequence may be altered, if desired, by using the ALTSEQ command.

   DATA [IS] {A[SCII]   
E[BCDIC]} [ , ] SEQ[UENCE] [IS]{ A[SCII]
E[BCDIC]}

END

Specifies the conclusion of SORT-MERGE/XL parameters. It also starts the sort or merge operation specified.

   E[ND] 

EXIT

Terminates the operation of SORT/XL or MERGE/XL and exits the subsystem.

   EX[IT] 

INPUT (SORT/XL)

Within the SORT/XL subsystem, the INPUT command specifies the input file(s) to be sorted. Refer to the MERGE/XL INPUT command for information on how to use the command within that subsystem.

   I[NPUT]  {$STDIN [ X ]
*
fname
(filename1,filename2,...filenameN)}[,#records][,rec size]

KEY

Specifies the location of the key data items in a file's records which are to be sorted or merged.

   K[EY] keyspec1 [; keyspec2]...[; keyspecN] 
keyspec

A group of parameters used to specify a key data item to be sorted or merged. The syntax of the keyspec parameters follows:

   position, length [,type][,DESC]

LANGUAGE

Defines the native language whose collating sequence is to be used to sort keys of type CHARACTER.

   L[ANGUAGE][IS]   {langnum  
<blank>
langname}

OUTPUT (SORT/XL)

Designates and creates the output file which is to receive the sorted records. Refer to the MERGE/XL OUTPUT command for information on how to use the command within that subsystem.

   O[UTPUT]  {*
$STDLIST
filename }[, NUM][, KEY]

RESET

The RESET command is used to correct errors made in the specification of keys. When entered, it nullifies all existing KEY commands.

   RESET 

SHOW

Displays the collating sequence or the translation table.

   SH[OW]  {S[EQUENCE][,O[FFLINE 
T[ABLE][,O[FFLINE
<blank>
NOS[EQUENCE]
NOT[ABLE] }

VERIFY

Displays information on the input and output files, key descriptions, and the various options in effect during a SORT/XL or MERGE/XL operation to the file LIST.

   V[ERIFY] 

:(MPE Command)

The : is entered preceding MPE commands within SORT/XL or MERGE/XL, for example, for entering file equations.

   : [MPE command] 

:EOD

The :EOD command is not truly a command. It terminates the list of input records to MERGE/XL when * (for $STDIN) is the input file.

   :EOD 

To Initiate MERGE

   RUN MERGE.PUB.SYS

ALTSEQ

The ALTSEQ command defines a collating sequence other than the standard ASCII or EBCDIC format. The ALTSEQ command must be preceded by a DATA command. It is effective only if the keys are of type BYTE and if the input data is ASCII. (Refer to Appendix B of the Sort-Merge/XL General User's Guide for information on ASCII and EBCDIC character set values.)

   A[LTSEQ] modspec1[, modspec2]..[, modspecN] 

[EACH]leftspec { =
<blank>
WITH} rightspec
or
MERGE leftspec {WITH
<blank>
= } rightspec

To specify leftspec and rightspec use the following form:

   {string         
num byte
range string }

DATA

Specifies the type of the input data (either ASCII or EBCDIC) and the basic collating sequence to be used in the particular SORT/XL (or MERGE/XL) operation. The collating sequence may be altered, if desired, by using the ALTSEQ command.

   DATA [IS] {A[SCII]   
E[BCDIC]} [ , ] SEQ[UENCE] [IS] {A[SCII]
E[BCDIC]}

END

Specifies the conclusion of SORT-MERGE/XL parameters. It also starts the sort or merge operation specified.

   E[ND] 

EXIT

Terminates the operation of SORT/XL or MERGE/XL and exits the subsystem.

   EX[IT] 

INPUT (MERGE/XL)

Within the MERGE/XL subsystem, the INPUT command specifies the sorted files to be merged. Refer to the SORT/XL INPUT command for information on how to use the command within that subsystem.

   I[NPUT] {filename1,filename2}[,filename3]...[,filenameN] 

KEY

Specifies the location of the key data items in a file's records which are to be sorted or merged.

   K[EY] keyspec1 [; keyspec2]...[; keyspecN] 
keyspec

A group of parameters used to specify a key data item to be sorted or merged. The syntax of the keyspec parameters follows:

   position, length [,type][,DESC]

LANGUAGE

Defines the native language whose collating sequence is to be used to sort keys of type CHARACTER.

   L[ANGUAGE][IS] {langnum  
<blank>
langname}

OUTPUT (MERGE/XL)

The OUTPUT command is used to designate and create the output file, which is to receive the merged records. Refer to the SORT/XL OUTPUT command for information on how to use the command within that subsystem.

   O[UTPUT]  {filename    
<blank>
$STDLIST}[,num records][, KEY]

RESET

The RESET command is used to correct errors made in the specification of keys. When entered, it nullifies all existing KEY commands.

   RESET 

SHOW

Displays the collating sequence or the translation table.

   SH[OW]  {S[EQUENCE][,O[FFLINE
T[ABLE][,O[FFLINE
<blank>
NOS[EQUENCE]
NOT[ABLE] }

VERIFY

Displays information on the input and output files, key descriptions, and the various options in effect during a SORT/XL or MERGE/XL operation to the file LIST.

   V[ERIFY] 

:(MPE Command)

The : is entered preceding MPE commands within SORT/XL or MERGE/XL.

   : [MPE command] 

:EOD

The :EOD command is not truly a command. It terminates the list of input records to SORT/XL when * (for $STDIN) is the input file.

   :EOD 
Feedback to webmaster