z/OS DFSORT Application Programming Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


ALTSEQ control statement

z/OS DFSORT Application Programming Guide
SC23-6878-00

Read syntax diagramSkip visual syntax diagram
                   .-,----.      
                   V      |      
>>-ALTSEQ--CODE=(----fftt-+--)---------------------------------><

The ALTSEQ control statement can be used to change the alternate translation table (ALTSEQ table). Any modifications you specify are applied to the standard EBCDIC translation table. The modified ALTSEQ table overrides the installation default ALTSEQ table (the shipped default is the EBCDIC translation table).

The ALTSEQ table can be used in two ways as follows:
  • To apply an alternate collating sequence for SORT, MERGE, INCLUDE, or OMIT fields, or for INREC, OUTREC, or OUTFIL fields in logical expressions 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.
    For example, if you want to specify that the character $ (X'5B') is to collate at position X'EA', after uppercase Z (X'E9'), you should specify:
      ALTSEQ CODE=(5BEA)
  • To convert characters for INREC, OUTREC, or OUTFIL OUTREC fields with TRAN=ALTSEQ. In this case, the ALTSEQ table is used to change the actual data. If you specify TRAN=ALTSEQ without specifying an ALTSEQ control statement, DFSORT uses the installation default ALTSEQ table.
    For example, if you want to change the character $ (X'5B') to the character * (X'5C'), you should specify:
      ALTSEQ CODE=(5B5C)
CODE
Read syntax diagramSkip visual syntax diagram
           .-,----.      
           V      |      
>>-CODE=(----fftt-+--)-----------------------------------------><

Specifies the original and modified EBCDIC collating positions.

ff
specifies, in hexadecimal, the character whose position is to be changed in the ALTSEQ table.
tt
specifies, in hexadecimal, the new position the character is to occupy in the ALTSEQ table.

The order in which the parameters are specified is not important.

Note:
  1. If CHALT is in effect, control fields with format CH are collated using the ALTSEQ table, in addition to those with format AQ.
  2. If you use locale processing for SORT, MERGE, INCLUDE, or OMIT fields, you must not use CHALT. If you need alternate sequence processing for a particular field, use format AQ.
  3. Using ALTSEQ can degrade performance.

Default: Usually the installation option. See Specification/override of DFSORT options for full override details.

Applicable Functions: See Specification/override of DFSORT options.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014