2016 Hot IT Skills
2016 Hot IT Skills

Below is the flow chart that states how to UPDATE a VSAM record in CICS:

Step:1

First step is you need to read a record from file with UPDATE option. Else, CICS treats it as READ only

EXEC CICS

READ FILE(FILEA) INTO(Record1) RIDFLD(Key1)

UPDATE

END-EXEC

Step-2:

You need to issue REWRITE command to UPDATE a record with new values.

EXEC CICS

REWRITE FILE(FILEA) FROM(Record1) RIDFLD(Key1)

END-EXEC

5 Thoughts on RIDFLD

1- RIDFLD should be given while reading a VSAM record for update

2- RIDFLD may be a Key or RBN or RRN

3- For RBN, the RIDFLD should be greater than or equal to zero

4- For RRN, the RIDFLD should be greater than or equal to 1

5- For RBN, the RIDFLD should be fullword bynary

Advertisements