6.2.21.7.1 Comparison Cycle
The comparison cycle consists of the following actions:
- The first comparand is compared with an equal number of leftmost
contiguous characters in the inspected item. The comparand matches
the inspected characters only if both are equal,
character-for-character.
If the CHARACTERS phrase is specified, an implied 1-character
comparand is used. The implied character is always considered to
match the inspected character in the inspected item.
- If no match occurs for the first comparand and there are more
comparands, the comparison is repeated for each successive comparand
until either a match is found or all comparands have been acted upon.
- Depending on whether a match is found, these actions are taken:
- If a match is found, tallying or replacing takes place, as
described in the TALLYING and REPLACING phrase descriptions.
If there are more characters in the inspected item, the first
character following the rightmost matching character is now
considered to be in the leftmost character position. The process
described in actions 1 and 2 is then repeated.
- If no match is found and there are more characters in the
inspected item, the first character following the leftmost
inspected character is now considered to be in the leftmost
character position. The process described in actions 1 and 2 is
then repeated.
- Actions 1 through 3 are repeated until the rightmost character in the
inspected item either has been matched or has been considered as being
in the leftmost character position.
When the BEFORE or AFTER phrase is specified, the comparison cycle is
modified, as described in "BEFORE and AFTER Phrases (All Formats)" in
topic 6.2.21.4.
© Copyright IBM Corp. 1991, 1998
IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.
Return to library:
z/OS |
z/OS.e |
TPF |
z/VSE |
z/VM |
IBM Hardware |
IBM System z Redbooks
Glossary:
IBM terminology
Publications:
How to order publications
Readers:
Download IBM Library Reader |
Download IBM Softcopy Reader |
Download Adobe® Acrobat® Reader®
Library management:
Download IBM Softcopy Librarian
Contacts:
Contact z/OS
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks
of Adobe Systems incorporated.