|
ALTSEQ control statement |
|
The ALTSEQ control statement can be used to change the alternate translation table (ALTSEQ table). Any modifications you specify are applied to the standard ASCII translation table. The ALTSEQ table can be used to apply an alternate collating sequence for SORT, MERGE, INCLUDE or OMIT fields with format AQ (or format CH with CHALT in effect). In this case, the ALTSEQ table is used to change only the order in which data is collated, not the data itself. If you specify AQ (or CH with CHALT) without specifying an ALTSEQ control statement, DFSORT uses the installation default ALTSEQ table. CODE encoding By default, or specifing the parameter ASCII, XSORT 2 recognize the ff and tt as ASCII values. So, for example, if user wants to specify that the character 'A' (ASCII X'41') is to be placed after the character 'B' (ASCII X'42') he should specify: ALTSEQ CODE=(4142) In order to save the user to convert his existing DFSORT(TM) control cards, the parameter EBCDIC may be used. In this case user may leave ff and tt encoded with EBCDIC values, XSORT 2 will automatically convert the codes in ASCII values. So, for example, if in the original control cards was specified: ALTSEQ CODE=(C1C2) in order to have 'A' after 'B', control cards may remain unchanged by specifing ALTSEQ CODE=(C1C2),EBCDIC The EBCDIC handling may be globally set up, by means of the environment variable XSORT_ALTSEQ_CARDS (see Configuration) The following sample, shows how to sort, in ASCII ordering, inverting the collating sequence of '1' with '2', and 'A' with 'B', providing mainframe-like altseq encoding: setenv XSORT_ALTSEQ_CARD "EBCDIC" |