INSPECT Statement - Format 4
>>-INSPECT--identifier-1--CONVERTING--+-identifier-6-+--TO------>
'-literal-4----'
>--+-identifier-7-+--------------------------------------------->
'-literal-5----'
.-----------------------------------------------.
V |
>----+-------------------------------------------+-+-----------><
'-+-BEFORE-+--+---------+--+-identifier-4-+-'
'-AFTER--' '-INITIAL-' '-literal-2----'
In Format-1, identifier-1 is a sending item. In the other formats, it is treated as a sending data item for the purpose of determining its length.
For use in the INSPECT statement, the content of each data item referenced by all identifiers except identifier-2 (the count field) is treated as follows:
If literal-1, literal-2, or literal-4 is a figurative constant, it refers to an implicit one character data item.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.