Accessing databases with your CICS application program

When designing your program, consider the type of data it must access. The type of data depends on the operating environment.

The data from IMS and Db2 for z/OS® databases, and z/OS files, that is available to CICS® online and IMS batch programs is shown in the following table.

Table 1. The data that your CICS program can access
Type of program IMS databases Db2 for z/OS databases z/OS files
CICS online Yes1 Yes2 Yes3
DB batch Yes Yes3 Yes
Notes:
  1. Except for Generalized Sequential Access Method (GSAM) databases. GSAM enables batch programs to access a sequential z/OS data set as a simple database.
  2. IMS does not participate in the call process.
  3. Access through CICS file control or transient data services.

Also, consider the type of database your program must access. As shown in the following table, the type of program you can write and database that can be accessed depends on the operating environment.

Table 2. Program and database options in the CICS environments
Environment1 Type of program you can write Type of database that can be accessed
DB batch DB batch
  • Db2 for z/OS2
  • DL/I Full-function
  • GSAM
  • z/OS files
DBCTL BMP
  • Db2 for z/OS
  • DEDBs
  • Full-function
  • GSAM
  • z/OS files
CICS online
  • Db2 for z/OS2
  • DEDBs
  • Full-function
  • z/OS files (access through CICS file control or transient data services)
Notes:
  1. A CICS environment, or CICS remote DL/I environment also exists and is also referred to as function shipping. In this environment, a CICS system supports applications that issue DL/I calls but the CICS system does not service the requests itself. The CICS environment function ships the DL/I calls to another CICS system that is using DBCTL. For more information on remote DL/I, see CICS Transaction Server for z/OS IMS Database Control Guide.
  2. IMS does not participate in the call process.

The types of databases that can be accessed are: