Is there a facility to execute the DB2 Command Processor (DB2C) commands in batch mode via the
Database Management Solutions for Db2 for z/OS product suite.
Use sample JCL found in hlq.CDBAJCL member DB2CJCL to execute DB2C commands in batch mode.
The //SYSIN DD contains the input (the command typed on the terminal during online DB2C processing)
and can be either in-stream data in the JCL or a dataset.
The DB2C batch output is written to SYSPRINT, which can be either an output class or a dataset.
For further details reference: Execute Commands in Batch Mode