SORT-MERGE/XL General User's Guide (32650-90883)
70 Chapter6
SORT-MERGE/XL Commands
ALTSEQ
© HEWLETT-PACKARD CO. 1986
>DATA IS ASCII, SEQUENCE IS ASCII
>ALTSEQ EACH "LMN"="ST"
>SHOW SEQUENCE
nul soh stx etx eot enq ack bel bs ht lf vt ff cr so si
dle dc1 dc2 dc3 dc4 nak syn etb can em sub esc fs gs rs us
sp ! " # $ % & ' ( ) * + , - . /
0 1 2 3 4 5 6 7 8 9 : ; < = > ?
@ A B C D E F G H I J K O P Q R
L= N= S M= T U V W X Y Z [ \ ] ^ -
` a b c d e f g h i j k l m n o
p q r s t u v w x y z { | } ~ del
The result of the
modspec
in the above example where EACH "LMN"="ST" is shown below:
Original List Sorted Result
TOKEN COST
MOP COME
COST SING
COME NOSE
TABLE LONESOME
MISS SOLE
SING TABLE
NOSE MISS
LONESOME TOKEN
SOLE MOP
During the sort operation, L and N are equated to S, and M is equated to T.
Using >ALTSEQ Without the EACH Parameter
The following example shows how to use the >ALTSEQ command without including the
EACH parameter. You may use abbreviated forms for >ALTSEQ (>A), >SHOW SEQUENCE (>SH
S), and SEQUENCE IS ASCII (SEQ A), if you wish.
:SORT
HP32214A.01.00 SORT/3000 THU, JUN 4, 1987, 8:15 AM
© HEWLETT-PACKARD CO. 1986
>DATA IS ASCII, SEQUENCE IS ASCII
>ALTSEQ "ABC" = "X"
>SHOW SEQUENCE
nul soh stx etx eot enq ack bel bs ht lf vt ff cr so si
dle dc1 dc2 dc3 dc4 nak syn etb can em sub esc fs gs rs us
sp= B= C ! " # $ % & ' ( ) * + , -
. / 0 1 2 3 4 5 6 7 8 9 : ; < =
> ? @ D E F G H I J K L M N O P