There are two Focus on Data process statements:
- NFOCUS
- Focus applies to the new file
- OFOCUS
- Focus applies to the old file
These two statements
select (or
"focus on") rows or columns of data to be compared.
In other words,
only these rows or columns are considered when performing the
comparison (or search) process and all other rows or columns are
ignored.
Up to 254
"focus"
statements can be entered for each file.
Note: - NFOCUS and
OFOCUS statements are mutually exclusive to NEXCLUDE and OEXCLUDE
statements if using the same operand
keyword (ROWS or COLS).
- Do not use the NFOCUS or OFOCUS process statement
if the Y2DTONLY process statement has been specified.
Compare Types: FILE (ROWS option only) and LINE
>>-+-NFOCUS-+--+-ROWS-+--start_position--:--end_position-------><
'-OFOCUS-' '-COLS-'
- start_position
- If ROWS operand used, the first row (record) to be selected for
the comparison.
If COLS operand used, the first column to be selected for
the comparison.
- end_position
- If ROWS operand used, the last row (record) to be selected for
the comparison.
If COLS operand used, the last column to be selected
for the comparison.
(Must be separated from the start_position by a colon.)
- Example
- Description
- NFOCUS ROWS 28:90
- Selects rows (records) 28 through 90 on the new file.
- OFOCUS ROWS 150:165
- Selects rows (records) 150 through 165 on the old file.
- OFOCUS COLS 10:18
- Selects columns 10 through 18 on the old file.