Reverse engineering a horrible COBOL structure initialization
Reverse engineering a horrible COBOL structure initialization
The COBOL code that I was looking at used a magic value 999, and I couldn’t see where it could be coming from. After considerable head scratching, I managed to figure out that all the array structure instantiations in the code are initialized using strings. That seems to be the origin of the magic (standalone) 999’s scattered through the code.
To share the horror, here is an (anonymized)…
View On WordPress
















