Problem:
Resolution:
Normal job submission, either through ESMac or via the internal reader, can only be used to submit a job to the local ES region.
This article describes how to submit a job from one ES region to execute on another ES region.
1) JES to JES
The system utility cassub can be called from a batch program running under JES in one ES region, to insert a job into the input queue on another ES region. The utility accepts the same parameters as when invoked from the command line, except that the destination region must be specified using either the /l or /s parameters, and not the /r parameter. Refer to the cassub documentation for more details.
The attached program CALLCAS.CBL illustrates this technique by writing a jobstream to a PC file, and then calling cassub to submit the jobstream to the server named BATCH.
2) CICS to JES
By defining an inter system communications link between the submitting CICS region and the target JES region, the normal job submission mechanism, via a Transient Data Queue (TDQ) defined as the type "Internal Rdr", may be used. The queue can either be defined to the submitting CICS region as a remote queue, or the WRITEQ command can be shipped to the remote region using the SYSID option.
Note that the target region must contain a local definition of the TDQ, and must also be configured for SSTM, in order to provide the link between the local TDQ and the local JES internal reader. This is described in the article 33752, named "How to use the Enterprise Server internal reader - INTRDR".
The attached program REMSUB.CBL illustrates this technique by writing a jobstream to a remote TDQ named XSUB defined on the BATCH ES region.