Top
NetCOBOL V11.0 Messages
FUJITSU Software

Appendix C COBOL File System Error Codes

This section explains the details of error codes that may be output by the COBOL file system when invoked from other products such as PowerBSORT. Although these error codes are similar to the appendix "I-O Status List" of the "NetCOBOL User's Guide", there are differences and these codes are not returned in the FILE STATUS item.

Table C.1 COBOL file system runtime error codes

Code
(Hexadecimal Number)

Explanation

Programmer Response

High

Low

10

Requested to make an entry after the end of a file or before the beginning of a file.

Check whether the number of input character items are correct.

21

An error was found in the order of a primary key.

Correct the program so that the key values are written in ascending order, or so that the record key values read by the preceding READ statement are not changed.

22

A new record key was duplicated in a file in which the duplicate keys are not allowed.

Correct the program so that the key is not duplicated.

23

The specified record does not exist.

Change the logic so that no attempt is made to operate on a record that does not exist.

24

Insufficient disk space.

Add more disk space and try again.

24

01

The record number specified for writing a relative record file was invalid (zero).

Specify a value for the relative record number.

24

02

Writing a record caused the maximum file size to be exceeded.

Split the file so that the file does not exceed the maximum file size.

30

01 mm nn

02 mm nn

The COBOL file system encountered an operating system error.

Correct the error returned from OS specified in nn mm.

30

01 01

Memory acquisition failed.

Increase the available memory or virtual memory (swap).

30

03 0A

No single record exists.

Store at least one record.

30

04 0A

More files than accepted exist.

Contact NetCOBOL Support. (*)

30

05 0A

Handle name error.

Contact NetCOBOL Support. (*)

35

A file with the specified file name does not exist.

Confirm if the specified file name or path name exists.

37

Access was mismatched against the file property.

Contact NetCOBOL Support. (*)

37

07

Issued an open output or I-O instruction against a read-only file.

Confirm the file attribute.

38

Cannot open a file closed with a lock.

Do not operate on a file after it is closed with a lock.

39

Cannot open a file because of a mismatch of file properties.

The file property specified in a parameter or option must match with that of the physical file.

39

01

Mismatched file organization.

The file organization specified in a parameter or option must match with that of the physical file.

39

02

Mismatched minimum record length.

The minimum record length specified in a parameter or option must match with that of the physical file.

39

03

Mismatched maximum record length.

The maximum record length specified in a parameter or option must match with that of the physical file.

39

04

Mismatched minimum block length.

Contact NetCOBOL Support. (*)

39

05

Mismatched maximum block length.

Contact NetCOBOL Support. (*)

39

06

Mismatched record delimiter.

When the file property specified in a parameter or option is record sequential variable-length format, confirm that the physical file is the same format. If not, contact NetCOBOL Support.

39

07

Mismatched code set.

Contact NetCOBOL Support. (*)

39

08

Mismatched collation sequence.

Contact NetCOBOL Support. (*)

39

09

Mismatched record format.

Contact NetCOBOL Support. (*)

39

0A

Mismatched padding character.

Contact NetCOBOL Support. (*)

39

30-7F

Mismatched properties (an offset, size, WITH DUPLICATES, etc.) for a key item in an indexed file.

The key property of an indexed file must match with that of the physical file.

43

An error occurred in the final reading.

Contact NetCOBOL Support. (*)

90

01

Contradiction of access with open processing.

Contact NetCOBOL Support. (*)

90

04

Contradiction of access with the file organization.

Contact NetCOBOL Support. (*)

90

05

Contradiction of the file truncate instruction with another user.

Contact NetCOBOL Support. (*)

90

06

A server session is rejected.

Contact NetCOBOL Support. (*)

90

07

Invalid access against a read-only file.

Contact NetCOBOL Support. (*)

90

08

Unsupported access.

Contact NetCOBOL Support. (*)

90

09

Insufficient message area.

Contact NetCOBOL Support. (*)

90

10

Invalid session ID.

Contact NetCOBOL Support. (*)

92

Unclosed file.

Contact NetCOBOL Support. (*)

92

01

Open issue against a file already opened.

Contact NetCOBOL Support. (*)

93

Invalid file.

Contact NetCOBOL Support. (*)

93

02

A file is locked with another file's connector.

Delete the record locking state from the other file's connector.

93

06

Cannot open because a file already exists.

Use a folder without a file or use a different file name.

94

Cannot open the file because the file attributes do not match.

Make sure that the attributes specified in parameters and options match the attributes of the physical file.

94

21

The file organizations do not match.

Make sure that the file organization specified in parameters and options matches the file organization of the physical file.

94

22

The minimum record lengths do not match.

Make sure that the minimum record length specified in parameters and options matches the minimum record length of the physical file.

94

23

The maximum record lengths do not match.

Make sure that the maximum record length specified in parameters and options matches the maximum record length of the physical file.

94

24

The minimum block lengths do not match.

Contact NetCOBOL Support. (*)

94

25

The maximum block lengths do not match.

Contact NetCOBOL Support. (*)

94

26

The record delimiters do not match.

Make sure that the maximum record length specified in parameters and options matches the maximum record length of the physical file. If the file attribute specified in parameters and options is a record sequential file of variable-length format, make sure that the physical file is a record sequential file of variable-length format. In any other case, contact NetCOBOL Support.

94

27

The code sets do not match.

Contact NetCOBOL Support. (*)

94

28

The collation sequences do not match.

Contact NetCOBOL Support. (*)

94

29

The record formats do not match.

Contact NetCOBOL Support. (*)

94

2A

The embedded characters do not match.

Contact NetCOBOL Support. (*)

94

30-5F

Attributes of indexed file key items (such as offset, size, and WITH DUPLICATES setting) do not match.

Make sure that the attributes of indexed file keys match the attributes of the physical file.

94

60

Insufficient disk space to create the file.

Increase the available memory or virtual memory (swap).

94

61

Insufficient disk space to create the file.

Increase the available disk space and try again.

94

64

There is an error in the specified file name.

Make sure that the file name does not include any invalid characters.

96

Undefined file position.

Contact NetCOBOL Support. (*)

97

01

An inappropriate character exists in the record of the line sequential file.

Contact NetCOBOL Support. (*)

97

02

Inappropriate character.

Contact NetCOBOL Support. (*)

97

03

A record area shorter than the minimum record length is specified.

Contact NetCOBOL Support. (*)

97

04

A record area longer than the maximum record length is specified.

Contact NetCOBOL Support. (*)

97

07

Mismatched record length.

Contact NetCOBOL Support. (*)

98

Invalid file structure.

Contact NetCOBOL Support. (*)

99

A file is locked with another file's connector.

Delete the record locking state from the other file's connector.

* : Open a support incident to obtain assistance from a NetCOBOL Support Engineer.