$ECHO

Top  Previous  Next

 

The $ECHO command inserted in a paragraph enables or disabled paragraph tracing.

 

 

Format

 

$ECHO {ON}

$ECHO OFF

 

 

The $ECHO command (optionally with a qualifier of ON) enables paragraph tracing. When this mode is active, the command processor displays the paragraph name, line number and sentence for each line executed.

 

The $ECHO OFF command disables paragraph tracing.

 

 

Example

 

The following paragraph might be used to delete all items in the BP.OUT file for which there is no corresponding source record in the BP file.

 

VOC CLEAN.BP

1: PA

2: $ECHO

3: SELECT BP.OUT

4: NSELECT BP

5: IF @SELECTED = 0 THEN STOP

6: DELETE BP.OUT

7: DATA Y

 

Running this with the $ECHO on line 2 shows are trace of each command prior to execution:

:CLEAN.BP

CLEAN.BP 3: SELECT BP.OUT

223 record(s) selected to list 0

CLEAN.BP 4: NSELECT BP

17 record(s) selected to select list 0

CLEAN.BP 5: IF @SELECTED = 0 THEN STOP

CLEAN.BP 6: DELETE BP.OUT

Use active select list (First item 'J7')? Y

17 record(s) deleted