call stack

How can I access the call stack information to identify the program cal hierarchy like you get at abend.