Skip to Content
0
Former Member
Jun 01, 2008 at 10:25 PM

Background program to exit after a runtime limit

40 Views

Hi all, I have a program for a long time background processing (generating certain data exports from sap). I can schedule this program to be started at evening every day, but I also need to force it to exit itself after some time limit (at early morning).

I tried to use GET RUN TIME function, but unfortunately it returns microsedons olny in integer format, integer (4 bytes) can hold only cca 70 minutes (if you translate it to microsedonds). Doesn't matter if you use LOW or HIGH run time resolution.

I also tried the GET TIME STAMP function, but do not know how to substract the start and the current timestamps and how to get the result in minutes. It substracts them only in decimal format - not like a date format.

Please help if you have some idea...

Thanks, B. Riha.