Inspect Manual
Using Inspect With COBOL and SCREEN COBOL
Inspect Manual—429164-006
10-13
MODIFY
When you request information about all identifiers in a program unit, Inspect lists
the identifiers in the reverse order of declaration for COBOL 74 and COBOL85;
Inspect lists the identifiers in alphabetical order for SCREENþCOBOL.
MODIFY
A MODIFY command operating on an edited field does not edit. Inspect functions
just as the VALUE clause does, inserting a character value into the data item
unchanged.
When you use a MODIFY command to assign a value to a group item, you must
use the MODIFY WHOLE form. The value you provide in the command must be a
quoted string value.
When you specify the name of a group item in a MODIFY WHOLE command,
Inspect requires the new value to be in the command list. Inspect will not prompt
for a new value.
When an alphanumeric data item in a COBOL program is being modified, the &
operator can be used to concatenate bytes with a string. The values can be in
binary, octal, or hex format.
The MODIFY command does not restrict COMPUTATIONAL items to 18-digit
values; it will allow you to store a 19-digit value. However, COBOL cannot
manipulate COMPUTATIONAL values in excess of 18 digits.
The MODIFY command can modify COBOL items that have been declared in the
Extended-Storage Section. To modify these items, use the standard MODIFY
command syntax described in Section 6, High-Level Inspect Commands.
SCOPE
For COBOL, the scope of an identifier is always the program-ID of the program unit
in which the identifier is declared.
If you have identifiers of the same name in different program units, be sure that you
qualify the identifiers enough for Inspect to distinguish them.
SET RADIX
Even if you set your input radix to hexadecimal, you must still prefix a hexadecimal
value with zero or “%H” if its first digit is above nine; otherwise, Inspect interprets
the value as an identifier.
STEP
The STEP command considers COBOL CALL, ENTER, and PERFORM
statements as one verb. If you step through a portion of the program and come to
a PERFORM statement, a subsequent STEP 1 VERB command executes the