Previous Topic Next topic Print topic


Where

Use

Displays either the current execution point or the location of a specified statement.

Command Syntax

WHERE [statement-id]

where:

statement-id
Is a statement label or a source line number

Description

The WHERE command prints a location as the name of a routine followed by a statement label.

If the statement identifier is a statement label, the name of the routine containing the label and the source line number of the label are printed. If the statement identifier is a source line number, the name of the routine is printed. If the statement identifier argument is omitted, the name of the routine and the line number of the current execution point are printed.

Example

In the following example, the next executable statement is located and the location is displayed.

CodeWatch> WHERE 108
Line 108 is not an executable statement ... 
WHERE using statement PRIMES\112 instead. 
PRIMES\112

In this example, the current execution point is displayed.

CodeWatch> WHERE
Current execution point is PRIMES.READ_INPUT\%ENTRY
Previous Topic Next topic Print topic