VSAMOPENFS

The VSAMOPENFS option affects the user file status reported from successful VSAM OPEN statements that require verified file integrity check.

Syntax

Read syntax diagramSkip visual syntax diagramVSAMOPENFS=*COMPATSUCC
Default
VSAMOPENFS=COMPAT
COMPAT
If you specify VSAMOPENFS=COMPAT, the statement returns the file status 97 when a VSAM OPEN statement is successfully verified. This is compatible with pre-V6 COBOL runtime behavior.
SUCC
If you specify VSAMOPENFS=SUCC, the statement returns the file status 00 when a VSAM OPEN statement is successfully verified. This allows users to simply check for 0 in the first digit of the returned file status, as they usually do with other successful operations.