Question | Calling a Db2 batch program using the MVSExec API #178
Replies: 6 comments 3 replies
-
Like you would do in the JCL world as :
|
Beta Was this translation helpful? Give feedback.
-
Hi @dennis-behm, If we cannot execute a Db2 program via the IKJEFTxx program, we must be able to call it directly, but then we must manage the allocation of the plan in the program itself... not simple but doable... |
Beta Was this translation helpful? Give feedback.
-
Hi @FALLAI-Denis, What is the use case for calling the Db2 program? This does not sound like a typical scenario for a build framework implementation to start db2 programs; you might enter a grey zone and leave the area for what Dependency Based Build is designed for. To perform some automation you might just want to use the JobExec or even look into IBM Z Open Automation Utilities. |
Beta Was this translation helpful? Give feedback.
-
Hi @FALLAI-Denis , I am Senthil Nathan - Product Manager for DBB. I have the same question as Dennis on the need for a DB2 program execution in a build framework. Commenting here to get updates on the thread. |
Beta Was this translation helpful? Give feedback.
-
Hi, Our CI/CD tool chain takes place in three main stages:
At the deployment stage we want to keep up to date the state of the components installed on an environment. To do this, we want to use the capacities of Groovy and the DBB API which allows us to do these treatments in SSH mode (STC mode or TSU mode) rather than launching jobs (JOB mode) which will inevitably be subject to queuing (jes queue management) not compatible with our need for fluid chain of operations. Note that we have made a first version that uses files (GDG), but the DBB MVSExec API does not manage competing access to files: if a file is reserved (locked) by another processing, execution MVSExec triggers an error (BPXWDYN more precisely) and the treatment is not carried out, (no wait on locked resource). For this problem I will open another request. It is to avoid this contention problem on files that we want to use DB2 tables rather than files. |
Beta Was this translation helpful? Give feedback.
-
Hi, In zAppbuild, bindPackage in bindUtilities use TSOExec to call a Db2 program. Is it this solution what we have to consider? https://github.com/IBM/dbb-zappbuild/blob/main/utilities/BindUtilities.groovy |
Beta Was this translation helpful? Give feedback.
-
Hi,
Is it possible to execute a Db2 batch program, in particular a COBOL program, using the MVSExec API?
Should the program be prepared in a particular way (mode of attachment of the plan/package)? Does the bind package/plan need to be done in a particular way?
Are there any implementation examples? either at the IBM DBB level or at the JZOS level?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions