VSAM: File Write/Rewrite/Delete Error Messages

Text

Cause

Action

CICS InsertRecord() Error 01: Target VSAM file must be a Key Sequenced Data Set (KSDS) or a Relative Record Data Set (RRDS), or an Entry-Sequenced Data Set (ESDS).

There is a logic error in the CONNX 8.8 CICS/VSAM server program, probably caused by providing the wrong information to the CONNX 8.8 CDD import utility. 

Reimport the CICS file and COBOL copybook and retry the DELETE. If the error persists, notify CONNX Technical Support.

CICS DeleteCurrentRecord() Error 01: Target VSAM file must be a Key Sequenced Data Set (KSDS) or a Relative Record Data Set (RRDS).

There is a logic error in the CONNX 8.8 CICS/VSAM server program, probably caused by providing the wrong information to the CONNX 8.8 CDD import utility. 

Reimport the CICS file and COBOL copybook and retry the DELETE. If the error persists, notify CONNX Technical Support.

CICS DeleteCurrentRecord() Error 02: Read for Update failed; Delete bypassed. 

The current record was originally read without an update lock. Prior to the delete attempt, CONNX unsuccessfully attempted to read the record again with an update lock.

This message is returned when there is a file locking conflict with another CICS transaction. Retry the DELETE; if the problem persists, notify your CICS administrator.

CICS UpdateCurrentRecord() Error 01: The requested update record length is greater than the maximum record length for the target file. 

There is a logic error in the CONNX 8.8 CICS/VSAM server program, probably caused by providing the wrong information to the CONNX 8.8 CDD import utility.

Reimport the CICS file and COBOL copybook and retry the UPDATE. If the error persists, notify CONNX Technical Support.

CICS UpdateCurrentRecord() Error 02: Attempt to change the target VSAM file key field during an Update/REWRITE is not permitted; retry as an Insert/Delete.

The current SQL UPDATE statement includes one or more key fields in the SET clause; VSAM does not support an UPDATE (REWRITE) which changes the key of a KSDS.

Change the SQL Update statement to an INSERT of the new key/data followed by a DELETE of the current key.

CICS UpdateCurrentRecord() Error 03: Read for Update failed; Update bypassed.

The current record was originally read without an update lock. Prior to the Update (REWRITE) attempt, CONNX unsuccessfully attempted to read the record again with an update lock.

This message is returned when there is a file locking conflict with another CICS transaction. Retry the UPDATE; if the problem persists, notify your CICS administrator.

CICS UpdateCurrentRecord() Error 04: Target VSAM file is open for Update, but there is no Update token.

There is a logic error in the CONNX VSAM server program.

Notify CONNX technical support.

CICS UpdateCurrentRecord() Error 05: Target VSAM file is not open for update, or there is no current record. 

There is a logic error in the CONNX VSAM server program.

Notify CONNX technical support.