VMS / OpenVMS SORT MERGE Migration for x86 Intel Linux and Windows


VX/SOR is a full implementation of VMS / OpenVMS SORT MERGE from the SOR$ API set, the VX/DCL shell and also from the Linux shell. VX/SOR uses multi-file MERGE SORT techniques with quick-sort enhancements. VX/SOR call compatible library which provides the calleable interface for SOR$: SOR$BEGIN_SORT, SOR$END_SORT, SOR$INIT_SORT, SOR$MERGE, SOR$PASS_FILES, SOR$RELEASE_REC, SOR$RETURN_REC, SOR$SORT_MERGE, SOR$SPEC_FILE, SOR$STAT.

Calling SORT from the VX/DCL command line

SORT input-file-spec [,...] output-file

MERGE input-file-spec [,...] output-file

Qualifiefrs


ASCENDING
BINARY
CHARACTER
DECIMAL
DESCENDING
D_FLOATING
FORMAT
FIXED
VARIABLE
CONTROLLED
SIZE
BLOCK_SIZE
RECORD_SIZE
FILE_SIZE
F_FLOATING
G_FLOATING
H_FLOATING
KEY
LEADING_SIGN
OVERPUNCHED_SIGN
PACKED_DECIMAL
POSITION
PROCESS
ADDRESS
INDEX
RECORD
TAG
{NO} DUPLICATES
SEPERATE_SIGN
SEQUENTIAL
SIGNED
SIZE
SPECIFICATION={FILE}
STATISTICS
TRAILING_SIGN
UNSIGNED
ZONED

 

THE FOLLOWING VX/DCL SORT COMMAND OPTIONS ARE SUPPORTED

 

DEFINE VERB SORT
ROUTINE DO_SORT
IMAGE "SORT"

PARAMETER P1,
PROMPT="Input",
VALUE(REQUIRED, LIST, TYPE=$INFILE)

PARAMETER P2,
PROMPT="Output",
VALUE(REQUIRED, TYPE=$OUTFILE)

QUALIFIER PROCESS,
VALUE(REQUIRED, TYPE=SORT_TYPE)

QUALIFIER KEY,
PLACEMENT=POSITIONAL,
VALUE(REQUIRED, LIST, TYPE=SORT_KEY)

QUALIFIER WORK_FILES,
DEFAULT,
VALUE(TYPE=$NUMBER)

QUALIFIER SPECIFICATION,
VALUE(TYPE=$INFILE)

QUALIFIER FORMAT,
PLACEMENT=LOCAL,
VALUE(REQUIRED, LIST, TYPE=RECORD_FORMAT)

QUALIFIER BLOCK_SIZE,
PLACEMENT=LOCAL,
SYNTAX=SORT_USING_SRT,
VALUE(REQUIRED, TYPE=$NUMBER)

QUALIFIER CONTIGUOUS,
PLACEMENT=POSITIONAL

QUALIFIER DEVICE,
SYNTAX=SORT_USING_SRT,
VALUE(REQUIRED, TYPE=$DEVICE)

QUALIFIER INDEXED_SEQUENTIAL,
PLACEMENT=POSITIONAL,
VALUE(TYPE=$NUMBER)

QUALIFIER RELATIVE,
PLACEMENT=POSITIONAL

QUALIFIER SEQUENTIAL,
PLACEMENT=POSITIONAL

QUALIFIER OVERLAY,
PLACEMENT=LOCAL

QUALIFIER STABLE

QUALIFIER STATISTICS

QUALIFIER COLLATING_SEQUENCE,
VALUE(REQUIRED)
QUALIFIER DUPLICATES,

DEFAULT
QUALIFIER CHECK_SEQUENCE

 

 

 

 

 

Learn More