Inspect Manual

High-Level Inspect Commands
Inspect Manual429164-006
6-152
OBEY
INTEGER K(10,10)
INTEGER ARR (12)
Use Inspect to prompt for new values:
The comma above leaves ARR(6) unchanged, and pressing carriage return aborts
the Inspect prompting, leaving ARR(8) through ARR(11) unchanged.
OBEY
The OBEY command causes Inspect to read commands from a specified file. A file
named in an OBEY command is called an OBEY file.
filename
is the file name to obey.
Usage Considerations
Inspect reads and processes commands from the named file until it encounters the
end-of-file. At this point, Inspect closes the OBEY file and reverts to its previous
input file, normally the Inspect command terminal.
Additional OBEY commands can appear within an OBEY file; OBEY files can be
nested to a depth of four.
Inspect qualifies the log file using the current volume and subvolume if Inspect’s
systype is Guardian, otherwise, Inspect will qualify the file name using the current
OSS directory.
Inspect generates an error if any part of the specification is invalid, if the file does
not exist, or if the file cannot be opened. Inspect displays an error message and
prompts for input if the input file is a terminal. If the input file was not a terminal,
Inspect terminates.
If you use an OBEY command in the THEN clause of a BREAK command, an error
can occur if the OBEY file contains a RESUME command. The first time the
-FORTOBJ-MODIFY A=5
-FORTOBJ-MODIFY S="Falcon"
-FORTOBJ-MODIFY K(1:5,3) := 4,7,9,15,22
-FORTOBJ-MODIFY K(1:5,4) := 5 COPIES 0
-FORTOBJ-DISPLAY A, S, K(1:5, 3:4)
A = 5, S = "Falcon"
K[1,3] = 4 7 9 15 22
K[1,4] = 0 0 0 0 0
-FORTOBJ-MODIFY ARR(6:11)
ARR(6)=49 := ,
ARR(7)=50 := 37
ARR(8)=51 :=
OBEY filename