I am little confused. Why would I want to write an entire procedure to do what is already available (and BETTER!) in RPG? You are using Date and Time fields. Why not use a Timestamp field? This would allow to calculate elpased times less than a second (of course how accurate would these times really be??). You are using the %Diff() BIF. Why not use the %Diff() against the 2 Timestamp fields directly? You are using you own code to return the elapsed time in different units (Hours, Days, etc.). Why not use the optional 3rd parm on %Diff()? As you can see, ALL of the functionallity you have written into your procedure are directly available by using 2 Timestamp fields (with the TIME op-code) and the %Diff() BIF. So, what's the point? Brian

Reply With Quote