分享

VSAM - File status

 lahiseyi 2011-11-24

00

Successful completion

02

Indexed files only. One of two possibilities:
- For a READ statement, the key value for the current key is equal to the value of that same key in the next record in the current key of reference.
- For a WRITE or REWRITE statement, the record just written created a duplicate key value for at least one alternate record key for which duplicates are allowed.

04

The length of the record being processed does not conform to the fixed file attributes for that file

05

The referenced optional file is not present at the time the OPEN statement is executed.

07

Sequential files only. For an OPEN or CLOSE statement with the REEL/UNIT phrase the referenced file

10

No next logical record exists. You have reached the end of the file.

14

Relative files only.
The number of significant digits in the relative record number is larger than the size of the relative key data item described for that file.

21

Sequentially accessed files only
Indicates a sequence error. The ascending key requirements of successive record key values has been violated, or, the prime record key value has been changed by a COBOL program between successful execution of a READ statement and execution of the next REWRITE statement for that file.

22

Indexed and relative files only.
Indicates a duplicate key condition.
Attempt has been made to store a record that would create a duplicate key in the indexed or relative file OR a duplicate altemate record key that does not allow duplicates.

23

Indicates no record found.
An aftempt has been made to access a record, identified by a key, and that record does not exist in the file.
Alternatively a START or READ Operation has been tried on an optional input file that is not present.

24

Relative and indexed files only.
Indicates a boundary violation arising from one of the following conditions:
An attempt is made to write beyond the externally defined boundaries of a file.
A sequential WRITE Operation has been tried on a relative file, but the number of significant digits in the relative record number is larger than the size of the relative key data item described for the file.

30

The I/O statement was unsuccessfully executed as the result of a boundary violation for a sequential

34

The I/O statement failed because of a boundary violation. – This condition indicates that an attemp

35

An OPEN Operation with the I-O, INPUT, or EXTEND phrases has been tried on a non-OPTIONAL file that

37

An OPEN Operation has been tried on a file which does not support the open mode specified in the OPE

38

An OPEN Operation has been tried on a file previously closed with a lock.

39

A conflict has been detected between the fixed file attributes and the attributes specified for that

41

An OPEN Operation has been tried on file already opened.

42

A CLOSE operation has been tried on file already closed.

43

Files in sequential access mode. – The last I/O statement executed for the file, before the execution of a DELETE or REWRITE statement, was not a READ statement.

44

A boundary violation exists.

46

A sequential READ operation has been tried on a file open in the INPUT or I-O mode but no valid next

47

A READ or START operation has been tried on a file not opened INPUT or I-O.

48

A WRITE operation has been tried on a file not opened in the OUTPUT, I-O, or FXTEND mode, or on a fi

49

A DELETE or REWRITE operation has been tried on a file that is not opened I-O.

90

no further information

91

for VSAM only: Password failure

92

logic error

93

for VSAM only: Resource not available

94

for VSAM with CMPR2 compiler-option onls: No file position indicator for sequential request

95

for VSAM only: Invalid or incomplete file information

96

for VSAM only: No DD statement specified for this file

97

for VSAM only: OPEN statement execution successful: File integrity verified

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多