Using DB2 on the mainframe, I have a value indicating number of microseconds that a job took, say 26,366,861,945.
Is there any easy way to get that into the H:MM:SS.mmmmmm format using standard DB2 functions? In other words, that value above would become 7:19:26.861945.
If necessary, we can drop the microseconds and accept HH:MM:SS.
If it’s over 24 hours, I’m not fussed about showing days, 27:02:14 would be fine.
I though about selecting the zero time plus xx microseconds but couldn’t get it to work.
Well, it’s absolutely atrocious, but this should work:
I split it into parts, so it should be fairly easy to follow. Convert the string to an integer, add that to a specific date (the date really doesn’t matter, as long as it’s the first of the month), then use some string searching / formatting to convert it to hours instead of days.