Previous Topic

Next Topic

Book Contents

Book Index

General Information

DO EXTRACT extracts information that is located in the specified column range on the specified line. The line number and column range can contain the following types of values:

Table 226 Valid DO EXTRACT Line Number and Column Range Values

Value

Description

Absolute Column Values

Explicit column numbers of a line relative to the line located by the current WHEN statement.

Example

LINE +003 COL 0052-0060

Relative Values

Line numbers must be and column numbers may be specified with a + (plus) or – (minus) prefix:

+nnn

nnn lines or columns after the current position (located by the current WHEN statement). +000 specifies the same line or column located by the current WHEN statement.

-nnn

nnn lines or columns before the current position (located by the current WHEN statement).

Example

LINE +005 COL +010 - +020

Line specifications and relative column specifications are relative to the line and first column of the location where the search string specified by WHEN criteria was found.

The relevant WHEN statement is at the WHEN level specified by the LEVEL parameter of statement DO EXTRACT.

The default LEVEL is zero, which refers to the last WHEN before the DO EXTRACT statement.

Control-M/Analyzer AutoEdit variables and Local variables can be embedded in the varname parameter of statement DO EXTRACT. The variables are resolved (replaced) at time of rule execution. For additional information on AutoEdit processing, see Control-M/Analyzer Variables, and in particular Passing Variables to Blocks, Rules and User Routines.

Parent Topic

DO EXTRACT: Automated Balancing Statement