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.
Type of program | IMS databases | Db2 for z/OS databases | z/OS files |
---|---|---|---|
CICS online | Yes1 | Yes2 | Yes3 |
DB batch | Yes | Yes3 | Yes |
Notes:
|
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.
Environment1 | Type of program you can write | Type of database that can be accessed |
---|---|---|
DB batch | DB batch |
|
DBCTL | BMP |
|
CICS online |
|
|
Notes:
|
The types of databases that can be accessed are:
- Full-Function Databases
Full-function databases are hierarchic databases that are accessed through Data Language I (DL/I). DL/I calls enable application programs to retrieve, replace, delete, and add segments to full-function databases. CICS online and BMP programs can access the same database concurrently (if participating in IMS data sharing); an IMS batch program must have exclusive access to the database (if not participating in IMS data sharing).
All types of programs (batch, BMPs, and online) can access full-function databases.
- Fast Path DEDBs
Data entry databases (DEDBs) are hierarchic databases for, and efficient access to, large volumes of detailed data. In the DBCTL environment, CICS online and BMP programs can access DEDBs.
- Db2 for z/OS
Databases
Db2 for z/OS databases are relational databases. Relational databases are represented to application programs and users as tables and are processed using a relational data language called Structured Query Language (SQL). Db2 for z/OS databases can be processed by CICS online transactions, and by IMS batch and BMP programs.
Related Reading: For information on processing Db2 for z/OS databases, see DB2® for z/OS Application Programming and SQL Guide.
- GSAM Databases
Generalized Sequential Access Method (GSAM) is an access method that enables BMPs and batch programs to access a
flat
sequential z/OS data set as a simple database. A GSAM database can be accessed by z/OS or CICS. - z/OS Files
CICS online and IMS batch programs can access z/OS files for their input, processing, or output. Batch programs can access z/OS files directly; online programs must access them through CICS file control or transient data services.