COBOL 5.1 Compilation Error: ./CodeGenerator.cpp:4665

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: COBOL 5.1 Compilation Error: ./CodeGenerator.cpp:4665

Postby BillyBoyo » Fri May 20, 2016 12:22 am

Well, we're never supposed to see them. They're never supposed to happen :-)

Using enrico's example, the programmer thinks "hey, if I go into this routine and the data I'm supposed to have doesn't have a length, then the whole kit-and-kaboodle is going up the creek, fast, with no means of propulsion. However, since this should never happen, rather than trying to take it into account with the code, I can say 'hey, buddy, I'm not doing anything with this, it's illogical'" and then just write the normal code relying on it not being possible - either because it will never happen, or because the "assert" will get it if the impossible ever occurs.

Something bad happened. Report it to IBM, they'll fix it.
Global moderator
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times


Return to IBM Cobol


  • Related topics
    Last post