August 10, 2005, 02:50 PM
ccaffaPorting application from FOCUS to WebFOCUS.
I'm an italian Focus programmer that have some problem with the porting of a procedure from FOCUS on IBM Mainframe to WebFOCUS, in particular i have a procedure with the same data input with different result. Anyone know if there are problems of different concept of Hold between the platforms ?
My english is not perfect.
August 10, 2005, 02:59 PM
LeahWhat is the data source type on the IBM mainframe? Could you include a code sample? We converted from mainframe to web 3-4 years ago. Can relate to your problem quite well.
August 10, 2005, 03:53 PM
j.grossYou can lose precision, and/or encounter overflow:
In webfocus (on most platforms) HOLD will operate as HOLD FORMAT ALPHA, where mainframe Focus would have used binary.
Thus a value of 1234.56789 in a D12.2 variable will remain 1234.56789 in a HOLD file on mainframe, but may be rounded to (exactly) 1234.57 in WebFocus, which will throw off your calculations to some degree, without any warning.
And 9876543210.00 or -123456789.00 would overflow on hold, appearing as *'s in the HOLD.ftm file.