Syntax for DASD Files READ, WRITE, REWRITE and DELETE in CICS

VSAM Files we can use in CICS like flat files. You already know that VSAM files can be concurrently accessed by Batch and Online. VSAM Record-Level Sharing (RLS). This explores a method for accessing VSAM files that gives multiple CICS address spaces concurrent READ/WRITE access to recoverable VSAM data sets.

On the other hand, below syntax help you how to access DASD files in CICS.

DASD Files in CICS

Syntax for READ:

EXEC CICS READ FILE(‘name’)

INTO(data-area)

RIDFLD(data-area)

LENGTH(data-value)

KEYLENGTH(data-value)

END-EXEC.

Syntax for WRITE:

EXEC CICS WRITE FILE(name)

FROM(data-area)

RIDFLD(data-area)

LENGTH(data-value)

KEYLENGTH(data-value)

END-EXEC.

Syntax for REWRITE:

EXEC CICS

REWRITE FILE (name)

FROM (data-area)

LENGTH (data-value)

END-EXEC.

Syntax for DELETE

EXEC CICS DELETE

FILE(‘name’)

RIDFLD(data-value)

END-EXEC.

Related Posts

Discover more from Srinimf

Subscribe now to keep reading and get access to the full archive.

Continue reading