. . . "But others have pointed out that hex literals were not allowed in the OS/VS compiler, so this particular combination of source and JCL could never have worked. "
For clarity: The problem code was almost certainly inserted by the DB2 pre-compiler. With a level of DB2 contemporary with the COBOL compiler it would have worked - different code would have been inserted. The OP is using on old version of COBOL (accidentally or intentionally) with a more recent version of DB2 for the pre-compile. That process inserts code which more modern compilers can handle. Chris Bowen ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN