Hi,
If you make your own function, using start-date and start-time and compare it with the current-date and current-time, it can be very cpu-time consuming. That is why it is better to find an operating system utility to do this because those should not use (much) cpu-time.
But of course, you can make something in COBOL with such a functionality.
Also with the newer COBOL compilers, you can use expressions with the FUNCTION INTEGER-OF-DATE combined with time.
Good Luck and tell us what you did.
Regards,
Crox