Why would cause a difference in generated code for
IF FIELDA > 0
GO TO A-EXIT.?
FIELDA is defined as PIC 9(8).
if compiled in Endevor the generated code is
and it compares to 'F0F0F0F0F0F0F0F0'
compiled outside of Endevor, we get
and it compares to '0C'
Obviously, the second case abends if the field is not initialized properly.
Both processes use the Enterprise COBOL for z/OS and OS/390 3.2.1 compiler. The compiler options appear to be the same in both cases.
Any insight would be helpful.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!