LOCATE Command

The LOCATE command provides the following information about the specified identifier:

  • The alphabetic name

  • The declared type

  • The program environment

  • The stack location

  • The sequence number of the declaration

  • Any of the aliases

Other commands, such as REFERENCE, also print out this header line information.

Syntax

── LOCATE ──<identifier specification>─────────────────────────────────┤

Examples

The following examples use the example INTERACTIVEXREF program contained at the end of this section.

The following command locates the identifier B declared or used closest to sequence number 5500:

LOCATE B AT 5500
CLOSEST MATCH:  B @ 00005400
B  ::  REAL @ (2,2)  ::  DECLARED @ 00001200
%

The following command locates the identifier C declared by procedure THREE of global procedure TWO:

LOCATE C OF THREE OF TWO
C OF THREE OF TWO :: INTEGER @ (4,2) :: DECLARED @ 00003700
%