Checkout SYSTEM(9001) - this should return what you're after.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bernard Lubin
Sent: Monday, 3 September 2007 3:47 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] [UV] - Getting the call stack trace within a program

I would like to write a program that will enable me to identify which
program has modified our master file.  I have a generic program that
issues the write command, but would like to know what program/subroutine
called this generic program.  Alternatively, I am also looking at
putting a trigger on the file to identify when the record was modified.

 
One of the details that I want to capture is the call stack trace (Like
the one produced by the debugger/RAID T command)
 
Is it possible for me to execute a basic statement/function that will
return the call stack trace. I know that we can issue a PORT.STATUS PID
9999 LAYER.STACK, However, this is a very resource hungry command (and
can only be executed by 1 user at a time) and also the PORT.STATUS
command cannot be issued from a file trigger program.
 
For example if I have PROGRAMA that calls SUBRA which in turns calls
SUBRA2 and finally the GENERIC.WRITE, I would like to issue a command
that will return the subroutine stack : PROGRAMA ; SUBRA; SUBRA2;
GENERIC.WRITE (preferably with the line number that called the various
subroutines)
 
Thanks 
 
Bernard Lubin
Development Department
Reynolds and Reynolds
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


DISCLAIMER:
Disclaimer.  This e-mail is private and confidential. If you are not the 
intended recipient, please advise us by return e-mail immediately, and delete 
the e-mail and any attachments without using or disclosing the contents in any 
way. The views expressed in this e-mail are those of the author, and do not 
represent those of this company unless this is clearly indicated. You should 
scan this e-mail and any attachments for viruses. This company accepts no 
liability for any direct or indirect damage or loss resulting from the use of 
any attachments to this e-mail.
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to