This document clarifies the installation of action blocks that are common to both online and batch. They may have code that access DB2. If call attachment is not installed correctly, a SQL -805 will occur at runtime.
Gen now has support for DSNULI. When DSNULI support is enabled, the installation process link-edits the dynamic action blocks including z/OS Library modules only once. The DB2 attachment type is DSNULI. The DLLs are populated in the DSNULI Exec library and can be shared between CICS and TSO Batch (JES) applications, with some exceptions. For more information reference Create Executable Load Modules.
SQL -805 PROBLEM/SOLUTION:
If a change is required to one of the common action blocks, the online load module containing the dynamic action block must be installed and then Gen will automatically install the batch version at the same time.
If the batch version is installed, Gen will NOT install the online version.
This will result in SQL -805 abend at runtime. This is working as designed.