Sorting LOT Records Using Alternate Sequence Codes - Code-1_Plus - 5.0

CODE-1 Plus Guide for IBM i

Product type
Software
Portfolio
Verify
Product family
Data Quality - Postals
Product
CODE-1 Plus
Version
5.0
Language
English
Product name
CODE-1 Plus
Title
CODE-1 Plus Guide for IBM i
Copyright
2024
First publish date
1998
ft:lastEdition
2024-05-15
ft:lastPublication
2024-05-15T00:03:43.588945

Line of Travel can help you sort your output records in the sequence required by the USPS to obtain the basic enhanced carrier route rate. Line of Travel returns two kinds of alternate sequence codes that you can use when sorting your records prior to presorting your mailing using, for example, the Precisely MailStream Plus software.

The Alternate Sequence Code(s) are normally obtained by using the LOTOUT parameter. If you are using a call or EXITOP to get the Alternate Sequence Code(s), note that in order for Line of Travel to return the alternate sequence codes, you must present a 2-character DPC add-on as input. If you are accessing the program via the EXITOP parameter, you must also specify the location of the input record DPC add-on by completing positions 29-32 on the EXITOP parameter, and you must specify a location on the output record for one of the alternate sequence codes by completing positions 37-40 or 41-44 on the EXITOP parameter.

Line of Travel uses the DPC add-on and the eLOT sequence code, which is either "A" for ascending or "D" for descending, to determine the two alternate codes.

The alternate sequence code is a two-character code used to sort your file in ascending order only. It consists of an uppercase letter followed by a digit 0 through 9. Values range from "A0" (99 descending) through "J9" (00 descending), and "K0" (00 ascending) through "T9" (99 ascending).

The hexadecimal sequence code is a single-character code, and it also allows you to sort your file in ascending order only. There are 200 values ranging from 99 descending through 00 descending, then 00 ascending through 99 ascending.

If you choose to use one of these codes to sort your file, you must sort your eLOT-coded records in ascending order in the following sequence:

  1. 5-digit ZIP Code

  2. 4-byte Carrier Route Code

  3. 4-digit Line of Travel Code

    Note: iThis includes only the numeric portion of the eLOT code. It does not include the eLOT sequence code.
  4. 4-byte ZIP + 4 Code

  5. 2-byte Alternate Sequence Code or 1-character Hexadecimal Sequence Code

Note: iPer USPS regulations, records with missing (blank) or invalid (0000) LOT information are to be sorted to the end of the CRRT.