Mainframe
-
- Posts: 26
- Joined: Fri Nov 07, 2008 3:19 pm
Mainframe
Hi,
did you really have access to a system/370?
I considered using an emulator (hercules), but finally managed to convert the floats to their binary representation and that to EBCDIC. Very nice and highly informative challenge!
did you really have access to a system/370?
I considered using an emulator (hercules), but finally managed to convert the floats to their binary representation and that to EBCDIC. Very nice and highly informative challenge!
i didnt realize they used a different base for the exponents but wow i had no clue they had a different keyboard scheme... i eventually stumbled onto this little gem here
http://support.microsoft.com/kb/216399/EN-US/
after finding examples to get my excel sheet to work it was solved
http://support.microsoft.com/kb/216399/EN-US/
after finding examples to get my excel sheet to work it was solved
Very funny challenge (well, up to a certain point)!!
First thing I tried was to download every available free Cobol compiler. But every one of those stumbled over some other dirty detail and produced various errors which I could not fix.
Then I did like you expected... deal with the Cobol syntax, EBCDIC and started doing it all by hand... grrr.
How did you calculate the scientific binary? I was asking Wolfram Alpha, but noticed various rounding errors which resulted in wrong letters here and there. It was always a difference of just 1, so it was easy to find the right letter... but it left a bad smell about trusting floating point values in general...
First thing I tried was to download every available free Cobol compiler. But every one of those stumbled over some other dirty detail and produced various errors which I could not fix.
Then I did like you expected... deal with the Cobol syntax, EBCDIC and started doing it all by hand... grrr.
How did you calculate the scientific binary? I was asking Wolfram Alpha, but noticed various rounding errors which resulted in wrong letters here and there. It was always a difference of just 1, so it was easy to find the right letter... but it left a bad smell about trusting floating point values in general...
Hi, very nice challenge. and very hard too... I did it all by hand after trying millions of openCOBOLS etc.
http://en.wikipedia.org/wiki/IBM_Floati ... chitecture
http://en.wikipedia.org/wiki/Binary_numeral_system
http://en.wikipedia.org/wiki/Ebcdic
It would be relatively easy without these giant exponents...
Thank you! Really interesting!
http://en.wikipedia.org/wiki/IBM_Floati ... chitecture
http://en.wikipedia.org/wiki/Binary_numeral_system
http://en.wikipedia.org/wiki/Ebcdic
It would be relatively easy without these giant exponents...
Thank you! Really interesting!
There are 10 types of people, those who understand ternary, those who think that this joke is about binary and the others.
Really nice challenge.
Figured it out myself, but with some googling around you can find that somebody (polarlemniscate) tried to solve this challenge with help of ibm mainframe user forum: http://www.ibmmainframeforum.com/viewto ... f=6&t=3784
There is answer available in plain text. It would be nice to change float's to say something else.
Figured it out myself, but with some googling around you can find that somebody (polarlemniscate) tried to solve this challenge with help of ibm mainframe user forum: http://www.ibmmainframeforum.com/viewto ... f=6&t=3784
There is answer available in plain text. It would be nice to change float's to say something else.
-
- Forum Admin
- Posts: 496
- Joined: Sat May 28, 2011 9:14 am
- Location: Germany
z390 for the win.
-
- Posts: 35
- Joined: Tue May 12, 2009 6:08 pm
- Location: Greece
you mean zCOBOLAMindForeverVoyaging wrote:z390 for the win.
I did some research on Cobol and how it represents floats, but i stumbled upon zCOBOL...
Good job to Teebee, very nice challenge.
-
- Forum Admin
- Posts: 496
- Joined: Sat May 28, 2011 9:14 am
- Location: Germany
I have found this link http://www.ibmmainframeforum.com/viewto ... f=6&t=3784,
what gave me enough info to deduce COMP-1 float representation. rest I did in excell.
what gave me enough info to deduce COMP-1 float representation. rest I did in excell.