IMBRANGE

Retrieves a range of consecutive serial numbers from Mail360 Manager for use in constructing Intelligent Mail Barcodes.

Syntax

IMBRange (mailerID, blockSize, [partitionID])

Arguments

Argument Description Default
mailerID The USPS-assigned mailer ID. This ID maybe either six or nine digits. None
blockSize The number of serial numbers to return. None
partitionID (Optional) The Mail360 partition ID. For information about this ID, see the Mail360 Manager User’s and Reference Guide. None

Results

Result Description
Return The first serial number in the block. The number will be nine digits long.
%%RC One of the following:
0 No error
1 Mail360 Manager error. If mailerID or blockSize is invalid, Enrichment issues an error message and stops processing.
%%RM If there was an error, an error message from Mail360 Manager.
%%RV The number of values that IMB could not provide. This is referred to as the remainder. For example, if you request 1000 numbers from Mail360 but it is only able to return 600 numbers, then the remainder would be 400. For more information on the remainder, see the Mail360 Manager User’s and Reference Guide.

Examples

Function Call Return %%RC
IMBRange('000123', '1000') 000000012 0
IMBRange('903456781', '1000', '35') 000350005 0