



The INSPECT statement specifies that characters, or groups of characters, in a data item are to be counted (tallied) or replaced or both.
___ Format 1 _____________________________________________________________________________________
| |
| >>__INSPECT__identifier-1__TALLYING____________________________________________________________> |
| |
| <____________________________________________________________________________________ |
| <_____________________________________________________________ | |
| <__________________ | | |
| >____identifier-2__FOR____ _CHARACTERS____ ______________ _|________________________ _|_|_____>< |
| | |_| phrase 1 |_| | |
| | <________________________________________ | |
| | <__________________ | | |
| |_ _ALL_____ ____ _identifier-3_ ____ ______________ _|_|_| |
| |_LEADING_| |_literal-1____| |_| phrase 1 |_| |
| |
| phrase 1: |
| |__ _BEFORE_ __ _________ __ _identifier-4_ ___________________________________________________| |
| |_AFTER__| |_INITIAL_| |_literal-2____| |
| |
|__________________________________________________________________________________________________|
___ Format 2 _____________________________________________________________________________________
| |
| >>__INSPECT__identifier-1__REPLACING___________________________________________________________> |
| |
| <___________________________________________________________________________________ |
| <__________________ | |
| >____ _CHARACTERS BY__ _identifier-5_ ____ ______________ _|_________________________ _|______>< |
| | |_literal-3____| |_| phrase 1 |_| | |
| | <______________________________________________________________ | |
| | <__________________ | | |
| |_ _ALL_____ ____ _identifier-3_ __BY__ _identifier-5_ ____ ______________ _|_|_| |
| |_LEADING_| |_literal-1____| |_literal-3____| |_| phrase 1 |_| |
| |_FIRST___| |
| |
| phrase 1: |
| |__ _BEFORE_ __ _________ __ _identifier-4_ ___________________________________________________| |
| |_AFTER__| |_INITIAL_| |_literal-2____| |
| |
|__________________________________________________________________________________________________|
___ Format 3 _____________________________________________________________________________________
| |
| >>__INSPECT__identifier-1__TALLYING____________________________________________________________> |
| |
| <____________________________________________________________________________________ |
| <_____________________________________________________________ | |
| <__________________ | | |
| >____identifier-2__FOR____ _CHARACTERS____ ______________ _|________________________ _|_|______> |
| | |_| phrase 1 |_| | |
| | <________________________________________ | |
| | <__________________ | | |
| |_ _ALL_____ ____ _identifier-3_ ____ ______________ _|_|_| |
| |_LEADING_| |_literal-1____| |_| phrase 1 |_| |
| |
| >__REPLACING___________________________________________________________________________________> |
| |
| <___________________________________________________________________________________ |
| <__________________ | |
| >____ _CHARACTERS BY__ _identifier-5_ ____ ______________ _|_________________________ _|______>< |
| | |_literal-3____| |_| phrase 1 |_| | |
| | <______________________________________________________________ | |
| | <__________________ | | |
| |_ _ALL_____ ____ _identifier-3_ __BY__ _identifier-5_ ____ ______________ _|_|_| |
| |_LEADING_| |_literal-1____| |_literal-3____| |_| phrase 1 |_| |
| |_FIRST___| |
| |
| phrase 1: |
| |__ _BEFORE_ __ _________ __ _identifier-4_ ___________________________________________________| |
| |_AFTER__| |_INITIAL_| |_literal-2____| |
| |
|__________________________________________________________________________________________________|
___ Format 4 ___________________________________________________________
| |
| >>__INSPECT__identifier-1__CONVERTING__ _identifier-6_ __TO__________> |
| |_literal-4____| |
| |
| >__ _identifier-7_ __________________________________________________> |
| |_literal-5____| |
| |
| <___________________________________________ |
| >____ _BEFORE_ __ _________ __ _identifier-4_ _|____________________>< |
| |_AFTER__| |_INITIAL_| |_literal-2____| |
| |
|________________________________________________________________________|
Subtopics:
© Copyright IBM Corp. 1991, 1998
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.