Hello,
yes, it's both possible!
A stored procedure can submit a batch job through the JES internal reader,
but you must provide a "//anyname DD SYSOUT=(,INTRDR)" - statement within
the DB2 Stored Procedure execution address space startup JCL (ssidSPAS or
any procname for WLM-managed address spaces). The Stored Procedure must
write the jobstream to this "anyname" file then. It can even read in the
jobstream from any JCL library before, if you provide a DD-statement there
for this library too.
I'm not that familiar with CICS, but DB2 V7+ provides even a dedicated and
very useful stored procedure called DSNACICS that can be used to invoke CICS
transactions and other things. This procedure is well documented in the DB2
z/OS Application Programming Guide
Cheers - Walter.
"Dad" <da********@gmail.com> schrieb im Newsbeitrag
news:11*********************@g43g2000cwa.googlegro ups.com...
Is it possible to invoke JCL or CICS from a stored procedure? I am
working on a integration project in which I need one system to invoke
another. The plan is to write data into tables in DB2 and then call
existing programs to process the data. We don't have CICS TS or
similar, so I need a way to trigger backend processing.