Does anyone know a online IBM390 resource??
I have been tasked with porting a old Cobol app to C code. I do NOT have access to an IBM S/390 to do any debugging. I do have access to a production system that provides me with the end-results of the algorithm, but none of the sub-step level info I need. I have used the TinyCOBOL (http://tiny-cobol.sourceforge.net/) compiler to compile the original code in a SuSE based server and add debug statements. My C code now produces the exact same results as the TInyCobol version for my 100 test cases. Unfortunately, the original is only agreeing with 90% of these results and I need a 100% agreement. The code is very mathematical and it heavily uses cobol's weird fixed point logic. I need a way to compile the original code with debug statements and run it on a IBM mainfraime. Does anyone know of a resource for doing this. TIA Greg Freemyer
COBOL's format allows the programmer to specify the precision of the number. This is supported by the IBM mainframe's decimal arithmentic logic. There is no analogy in the C language. Floating point is only an approximation. For instance, the COBOl specification:s9999999.99 will be stored as 5 bytes (packed decimal) with each nybble being a value between 0 and 9 decimal (except the low order nybble for the sign). There is no limit to the size of a number. While I have not looked at TinyCobol, it most likely maps its fixed point decimal to floating point. Greg Freemyer wrote:
The code is very mathematical and it heavily uses cobol's weird fixed point logic. -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
participants (2)
-
Greg Freemyer
-
Jerry Feldman