S0C4 in assembler but it is really weird
I'm testing Micro Focus Enterprise Developer, and am at the point where I need to execute a stand-alone Assembler program. This program is doing QSAM I/O and is AMODE(24),RMODE(24) on the mainframe.
I thought it would be easier to get it working if I started by executing it through JCL, just like on the mainframe. But the step is ending with a S0C4.
Here's what's weird:
The JCL output says it is running AMODE31, which is confirmed by the PSW in the assembler debugger. But, I've got RMODE(24),AMODE(24) set as both compile and link options, as well as setting AMODE370=24 in mf370ctl.cfg. Why is it running amode 31?
When I turn on the GTF trace, it does NOT end with a detected program check. It just ends with an instruction.
The instruction it ends with changes if I change the GTF trace options! For example, if I add the REG trace, then it ends in the middle of the 2-line register trace! (It prints R0-R7 but not R8-RF), and it is no