<ADDRESSBLOCK>

The <ADDRESSBLOCK> tag lets you specify a number of lines to identify an address block for line data print streams.

Using <ADDRESSBLOCK> automatically creates fields named %%ADDRESS1 through %%ADDRESS6. (Enrichment treats these fields as field variables, not as system variables.) The number of fields created depends on the depth value you specify. You can use these fields like any other field (in Rule, Add, Sidefile, and so on). If <FIELDREPLACE> is set to Y and action is set to R or RA, these fields are automatically updated with the cleansed address, based on your <LPCREPLACE> tag settings.

You cannot use <ADDRESSBLOCK> and the Address group within the same input.

Note: Another method to define the address is to define one field for each line and use the Address group to combine these fields into an address.

For AFPDS, Metacode and PDF print streams, you must use the Address group method because the address data can be anywhere in the print stream.

Tag Group

Input tag group

Syntax

<ADDRESSBLOCK> row column length depth [method action]

Parameter Description Default
row The line or record in which the first address line begins. None
column The column in which the address begins. None
length The length of each address line (up to 70 characters).
Note: If you set the CASS group <LPCREPLACE> tag useaddressasinputYN parameter to Y (YES) (meaning don’t use ADDRSCAN), but if the number of non-blank address lines encountered is less than 2 or more than 3, ADDRSCAN will be used in order to pass a valid number of address lines to Finalist.
None
depth The number of lines or records of the address (up to 6 lines or records). None
method One of the following to specify the method used to determine whether row and depth are indicated in printed lines or data records:

L[INES] Count print lines.

R[ECORD] Count data records

LINES
action The action parameter is a two-character value. The first character of the action value, which determines the action you want to perform on the address block, is one of the following:
  • K Keep the address block.
  • R Replace the address block.
  • D Extract the address, then delete it.
  • X Extract the address, then delete all records on which the address resides.
  • P Extract the address, then delete the entire page on which the address resides.
R

The second character of the action value, which defines how often Enrichment is to look for the field in each document, is one of the following:

  • (none) First page. Find and act upon the address on the first page of each document.
  • A All pages. Find and act upon the addresses on all pages of each document.
None