6.2.21.4 BEFORE and AFTER Phrases (All Formats)
This phrase narrows the set of items being tallied or replaced.
No more than one BEFORE phrase and one AFTER phrase can be specified for
any one ALL, LEADING, CHARACTERS, FIRST or CONVERTING phrase.
-
identifier-4 or literal-2
-
Is the delimiter.
Identifier-4 can be:
- An elementary alphanumeric data item
- A numeric data item with USAGE DISPLAY
- X An external floating point item
Literal-2 must be nonnumeric, and can be any figurative constant that
does not begin with the word ALL. If literal-2 is a figurative
constant, it is considered to be 1 character in length.
Delimiters are not counted or replaced. However, the counting and/or
replacing of the inspected item is bounded by the presence of the
identifiers and literals.
-
INITIAL
-
The first occurrence of a specified item.
The BEFORE and AFTER phrases change how counting and replacing are done:
- When BEFORE is specified, counting and/or replacing of the inspected
item (identifier-1) begins at the leftmost character and continues
until the first occurrence of the delimiter is encountered. If no
delimiter is present in the inspected item, counting and/or replacing
continues toward the rightmost character.
- When AFTER is specified, counting and/or replacing of the inspected
item (identifier-1) begins with the first character to the right of
the delimiter and continues toward the rightmost character in the
inspected item. If no delimiter is present in the inspected item, no
counting or replacement takes place.
© 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.