Focal Point
Time over 99hrs

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7631044082

April 14, 2008, 03:06 PM
JOE
Time over 99hrs
How can I display time over 99hrs. I have this define that will only go up to 99hrs:

DNUMSEC/I4=SCHEDULED;
DHOUR/I2=(DNUMSEC/60);
DMIN/I2=((DNUMSEC/60 - (DHOUR *60)));
DHHMMSS/I6=INT( DNUMSEC/3600 ) * 10000 + INT( IMOD(DNUMSEC,3600,'I4')/60 ) * 100 + IMOD(DNUMSEC,60,'I2');
DTIME/A9=EDIT(DHHMMSS,'99:99:99');

Please help


WebFocus 7.7.02 WinXP
April 14, 2008, 03:20 PM
Anonymouse
I think this should do it...

DHOUR/I3=(DNUMSEC/60);
...
DHHMMSS/I7=INT( DNUMSEC/3600 ) * 10000 + INT( IMOD(DNUMSEC,3600,'I4')/60 ) * 100 + IMOD(DNUMSEC,60,'I2');
DTIME/A9=EDIT(DHHMMSS,'999:99:99');

(edited to correct formatting. i wish you could preview before posting...)


Jeff
WebFOCUS 8.0.09, Unix-Win-z/OS
FOCUS 7.3.1 on z/OS
April 14, 2008, 03:32 PM
JOE
Thanks,

I ended up doing the exact same thing you did and it worked. Perfect.

Thanks for replying


WebFocus 7.7.02 WinXP