📜  CICS-文件处理

📅  最后修改于: 2020-11-22 16:36:08             🧑  作者: Mango


CICS允许我们以多种方式访问文件数据。在联机系统中,大多数文件访问是随机的,因为要处理的交易没有进行批量处理并按任何顺序排序。因此,CICS支持通常的直接访问方法-VSAM和DAM(直接访问方法)。它还允许我们使用数据库管理器访问数据。

随机访问

以下是用于随机处理的命令-

Sr.No Commands & Description
1 READ

READ command reads data from a file using primary key.

2 WRITE

Write command is used to add new records to a file.

3 REWRITE

REWRITE command is used to modify a record that is already present in a file.

4 DELETE

DELETE command is used to delete a record that is present in a file.

顺序访问

以下是用于顺序处理的命令-

Sr.No Commands & Description
1 STARTBR

STARTBR is known as start browse.

2 READNEXT / READPREV

When we issue a STARTBR command, it does not make the records available.

3 RESETBR

The RESETBR command allows us to reset our starting point in the middle of a browse.

4 ENDBR

When we have finished reading a file sequentially, we terminate the browse using the ENDBR command.