Technical overview
The z/OS gateway uses an extended MCS console to communicate with JES. The program issues the MCSOPER macro to activate an extended MCS console. The z/OS gateway can then receive messages and command responses by issuing the MCSOPMSG macro, and can issue commands by issuing the MGCRE macro. All the return codes from the extended MCS macros are handled as described in IBM® z/OS® Programming: Authorized Assembler Services Reference, Volume 3, SA22-7611.