Inspect Manual
High-Level Inspect Commands
Inspect Manual—429164-006
6-192
Related Commands
Related Commands
DISPLAY on page 6-33
SHOW with SUBPROC SCOPING option on page 6-194
Example
This example illustrates the SET SUBPROC SCOPING command. Note that the
current location is within subprocedure “s”.
SET SYSTYPE
The SET SYSTYPE command allows you to change the current systype of Inspect.
Usage Consideration
Inspect may override any user selected systype when a subsequent event is received.
-TEST(STEP)-SOURCE #0 FOR 24 LINES
#1 ?PAGE "PROC p"
#2 PROC p MAIN;
#3
#4 BEGIN
#5
#6 INT
#7 i := 42;
#8
#9 ?PAGE "SUBPROC s of PROC p"
#10 SUBPROC s;
#11
#12 BEGIN
#13
#14 INT
#15 i := 101;
#16
*#17 END;-- of SUBPROC s
#18 -- ********************End of SUBPROC s *********************
#19 ?PAGE "PROC p"
#20
#21 CALL s;
#22
#23 END;-- of PROC p
#24 -- ******************** End of PROC p **********************
-TEST-SHOW SUBPROC SCOPING
SUBLOCAL
-TEST-DISPLAY i
I = 101
-TEST-SET SUBPROC SCOPING = LOCAL
-TEST-DISPLAY i
** Inspect warning 99 ** Access is local (sublocal reference must be
qualified): I
I = 42
-TEST-DISPLAY S.I
S.I = 101
SET SYSTYPE { GUARDIAN | OSS }