Running an Endevor generate of a C++ module in batch, it runs successfully. If the same generate is executed in foreground, it fails because some of the compile parameters have been converted to lower case:
: DEFINE(C370=1) - batch
: DEFINE(c370=1) - foreground
: DEFINE(_CICS_=1) - batch
: DEFINE(_cics_=1) - foreground
: DEFINE(_C_=1) - batch
: DEFINE(_c_=1) - foreground
This behavior is documented in the C/C++ Language reference book.
See the IBM TechNote : TSO parameters are wrongly set to lowercase
Historical Number RTA000176193
The Endevor Generate processor must be updated and at least one parameter anywhere in the parameter string must be mixed case in order for the uppercase ones to remain uppercase.
For example, to solve this problem, change the word SOURCE to SOURCe.
Now TSO will generate DEF(ABC=1), OPTFILE(XYX) as you wish.