Calling the LTO10 Subroutine - 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

The LTO10 callable subroutine determines a 4-digit sequence number and a                1-character sequence code for a record. In order to call LTO10, you must pass two parameters:

  • Input Parameter — A 50-byte input area containing user-provided data passed from your executable program to LTO10.

  • Output Parameter — A 100-byte output area containing information returned from LTO10.

Using the input parameter, you must pass a 5-digit ZIP Code, a 4-digit ZIP+4 Code, a 2-digit DPC, and a 4-byte Carrier Route as input.

LTO10 then derives a Line of Travel (LOT) code, which is comprised of a 4-digit Line of Travel sequence number and a 1-character Line of Travel sequence code. Based on your output parameter, LTO10 returns the LOT code to your executable program.

The Line of Travel sequence code is either "A" for ascending, or "D" for descending. Since sorting in ascending and descending order can be unwieldy, Line of Travel returns two types of alternate codes that can be sorted in ascending order only.

The alternate sequence code is a two-byte code used for final sortation in place of the DPC add-on. 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-byte 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. Both the hexadecimal and alternate sequence codes are determined from the DPC add-on and the LOT sequence code. For more information on these codes, please refer to Alternate Sequence Codes.