Chapter Contents

Previous

Next
TRACEBACK

TRACEBACK



Displays the traceback of the entire SCL execution stack

Abbreviation: TB


Syntax
Details
Example

Syntax

TRACEBACK <_ALL_>

_ALL_
displays the link stack information in addition to the SCL execution stack.


Details

The TRACEBACK command displays the entire execution stack, which consists of the program that is currently being executed and all programs that were called to display the current program. In addition, the _ALL_ argument displays the link stack, which consists of the labeled sections that are called within the program.

The display of the link stack does not include labeled sections that are called with a GOTO statement.


Example

START.SCL contains a link at line 5 and calls ANALYZE.SCL at line 9. ANALYZE.SCL contains links at lines 5, 11, and 16.

Running the debugger and issuing TRACEBACK at line 21 of ANALYZE.SCL produces the following output:

---- Print The Traceback ----
In routine: TEST.TRACEBAK.ANALYZE.SCL line 21
Called from TEST.TRACEBAK.START.SCL line 9

Running the debugger and issuing TRACEBACK _ALL_ at line 21 of ANALYZE.SCL produces the following output:

---- Print The Traceback ----
In routine: TEST.TRACEBAK.ANALYZE.SCL line 21
     Linked from TEST.TRACEBAK.ANALYZE.SCL line 16
     Linked from TEST.TRACEBAK.ANALYZE.SCL line 11
     Linked from TEST.TRACEBAK.ANALYZE.SCL line 5
Called from TEST.TRACEBAK.START.SCL line 9
     Linked from TEST.TRACEBAK.START.SCL line 5


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.