ViewCallStack
From Pickwiki
UniData PORT.STATUS
The PORT.STATUS command allows you to see the UniBasic call stack and ECL command stack for a running udt process.
You must be logged in as root. If you can't get into an application account as root, try the demo account instead.
Use 'ps -elf | grep udt' or 'top' to find the process id that you want information on. The following example uses process id '15310'.
$ su root
[password]
# cd /usr/ud61/demo
# /usr/ud61/bin/udt
[[UniData]] Release 6.1 Build: (5076)
(c) Copyright IBM Corporation 2004.
All rights reserved.
Current [[UniData]] home is /usr/ud61/.
Current working directory is /usr/ud61/demo.
:
: PORT.STATUS PID 15310 CALL.STACK
Licensed[[/Effective]] # of Users Udt Sql iPhantom Total
100 / 100 44 0 0 44
Udtno Pid User Port Last command processed
41 15310 username pts/tY SOME.ECL.COMMAND
level line BASIC callstack
1 902 /usr/ud61/sys[[/CTLG/d/DOWNLOAD]]
2 127 /usr/ud61/sys[[/CTLG/d/DOWNLOAD]].LOAD
3 62 /usr/vendor/live_release/path/to[[/SUBROUTINE]]
4 413 /usr/vendor/live_release/path/to[[/OTHER]].SUBROUTINE
ECL session stack
[...]
:
Note: On UniVerse, change CALL.STACK to LAYER.STACK
Thanks to Tim Snyder and Tom Dodds on u2-users for this info!