Inspect Manual
High-Level Inspect Commands
Inspect Manual—429164-006
6-151
Examples
Before making modifications, display B field-by-field and then as a single string:
Change the C field and then DISPLAY to verify the change:
Try a MODIFY WHOLE, and then DISPLAY to verify the changes:
Use the & operator to concatenate ASCII and Non-ASCII values in the
alphanumeric data item C and then DISPLAY to verify the changes:
DISPLAY D in several bases:
2. This example demonstrates various MODIFY commands applied to these
FORTRAN data structures:
REAL A
CHARACTER*6 S
-COBOLOBJ-DISPLAY B
B =
C = "Jelvo, B. "
D = 45
E = 4085551212.
F = "Alvin's Place
"
-COBOLOBJ-DISPLAY B WHOLE
B = "Jelvo, B. " ?0 "-4085551212Alvin's Place "
-COBOLOBJ-MODIFY C OF B = "Manley, G."
-COBOLOBJ-DISPLAY B
B =
C = "Manley, G."
D = 45
E = 4085551212.
F = "Alvin's Place "
-COBOLOBJ-MODIFY B WHOLE = "Wirble, U.--6662325468Willy"
-COBOLOBJ-DISPLAY B WHOLE
B = "Wirble, U.--6662325468Willy's Place "
-COBOLOBJ-DISPLAY B
B =
C = "Wirble, U."
D = 11565
E = 6662325468.
F = "Willy's Place "
-COBOLOBJ-DISPLAY C of B
B.C = "Jelvo, B. "
-COBOLOBJ-MODIFY C of B
B.C = "Jelvo, B. " := "Paul,"&%hff&%hff&"D. "
-COBOLOBJ-DISPLAY C of B
B.C = "Paul," ?255 ?255 "D. "
-COBOLOBJ-DISPLAY D IN OCTAL DECIMAL HEX ASCII
B.D = %26455 11565 %H2D2D "--"