You can submit batch jobs from an online environment. There are two mechanisms that allow Elastic Transaction Platform transactions to submit a JCL job to EBP. Both give you access to the "internal reader" and are configured similarly in the ETP Deployment Settings. ETP Spools are configured with the following information:
- User ID - referenced on the EXEC CICS SPOOLOPEN API to specific a spool owner
- Protocol -- set to intrdr
- Destination -- the URL of the EBP submit Web service, including the remote or local server name, such as http://localhost:8080/ebp/submit?class=A
- Spool Class -- the class of the spool, also reference in the EXEC CICS SPOOLOPEN API
- Spool Node -- the remote node or (blank) local node reference in the EXEC CICS SPOOLOPEN API
The user, node and class determine the destination in these settings and it is the destination URL that determines the endpoint of the EBP system.
Spools that are closed and reopened serve as job boundaries as does a spool write of '/*EOF'. Jobs are submitted at transaction SYNCPOINT time up until which they may be DELETEd argument to the SPOOLCLOSE API.