I'd like to write a script in Sybase to:
1. Catch the time of the last transaction log that has been loaded
2. Make a difference between this time and the current time
3. Write the result in a text file like a log file.

How can I do it?

Thank you for your help