Diagnosing EDA198 on VM

Example:

Diagnosis #1

Diagnosis #2

Diagnosis #3

On VM, the EDA198 error codes fall into two categories: those that occur on reading the file and those that occur on writing the file.

Most of these error codes are self-explanatory. Some may be obsolete, since they apply to CDF mini disks (those formatted for 800-byte blocks) and not to the current EDF mini disks (those formatted for 512, 1024, 2048, or 4096-byte blocks). The most common error codes are 0000000C (the file is on a read-only disk), 0000000D (the disk is full), and 00000027 (the file is on a disk that is a read-only extension of another disk and therefore cannot be written to).

The following table shows the VM EDA198 reading error codes. Note that all codes are in hex.

Error Code

Reason

00000001

File not found.

00000002

Invalid buffer address (AREA parameter is probably wrong).

00000003

Permanent I/O error (sometimes happens when you are linked read- only to a disk that someone else is updating).

00000004

First character of the file mode is not valid.

00000005

Number of records requested is less than 0 or, for an 800-byte blocksize disk, is greater than 32768.

00000007

Invalid record format (FOCUS files must have RECFM F).

00000008

Buffer size is too small for record read.

00000009

Cannot read file open for output (800-byte blocksize disks only).

0000000C

End of file, or page number is bigger than size of file.

0000000E

Invalid character in file name.

0000000F

Invalid character in file type.

00000013

I/O error occurred on an FBA device.

00000014

Invalid character in file name.

00000015

Invalid character in file type.

00000019

Insufficient storage for VM file management control areas.

0000001A

Page number is negative.

0000001D

Shared File System Error storage group space limit reached.

0000001E

Shared File System Error (unknown). No rollback occurred.

0000001F

Rollback occurred while trying to access a Shared File System file.

00000028

Callable Services Library error.

00000030

File is empty.

00000031

File cannot be opened.

00000037

Shared File System communications error.

00000046

Shared File System sharing conflict.

00000054

Cannot read a file on an OS or DOS mini disk.

00000063

Shared File System file pool server error.

0000AAAA

No more space in FOCUS I/O table.

0000BBBB

A currency error was detected, but the file was not in SU or SU/LOCAL mode or the Master File specifies a suffix of FOC OS, but the file is not on an OS format mini disk.

0000CCCC

Page number is larger than 256 megabytes (262143).

0000EEEE

Insufficient core for FOCUS shadow directory control areas. This error can occur even if the file is not shadowed.

The following table shows the VM EDA198 writing error codes. Note that all codes are in hex.

Error Code

Reason

00000001

Not authorized to write to file.

00000002

Invalid buffer address (AREA parameter is probably wrong).

00000003

Permanent I/O error. Disk probably released or detached.

00000004

First character of file mode is invalid, or disk not accessed.

00000005

Second character of file mode is invalid.

00000006

Record number to be written is larger than 256 megabytes (262143) or is negative.

00000009

Cannot write file open for input (800-byte blocksize disks only).

0000000A

Maximum number of files per mini disk reached.

0000000C

Attempt to write on read-only disk or SFS directory.

0000000D

Disk is full.

0000000F

Length of the record is not the same as the length of the last item (can occur if a FOCUS file or FOCSORT exists with LRECL other than 4096).

00000010

Record format is not the same as the file (can occur if a FOCUS file or FOCSORT exists with RECFM V).

00000013

Maximum number of data blocks per file reached.

00000014

Invalid character in file name.

00000015

Invalid character in file type.

00000019

Insufficient storage for VM file management control areas.

0000001A

Page number is negative.

0000001D

Shared File System Error storage group space limit reached.

0000001E

Shared File System Error (unknown). No rollback occurred.

0000001F

Rollback occurred while trying to access a Shared File System file.

00000026

File opened is read only.

00000027

File is on a disk that is a read-only extension of another disk and thus cannot be written to.

00000028

Callable Services Library error.

00000031

File cannot be opened.

00000037

Shared File System communications error.

00000046

Shared File System sharing conflict.

00000054

Attempt to write to an OS or DOS formatted mini disk.

00000063

Shared File System file pool server error.

0000AAAA

No more space in FOCUS I/O table.

0000BBBB

A currency error was detected, but the file was not in SU or SU/LOCAL mode.

0000CCCC

Page number is larger than 256 megabytes (262143).

0000EEEE

Insufficient core for FOCUS shadow directory control areas. This error can occur even if the file is not shadowed.


Top of page

Example: Diagnosis #1

The following is an example of an EDA198 error message:

(EDA198) FATAL ERROR IN DATABASE I/O. FOCUS TERMINATING. ERROR
WRITING PAYROLL FOCUS A ,PAGE 418 ,CODE=0000000D

The four pieces of information indicate that the error occurred while writing to the file PAYROLL FOCUS A and that the procedure failed to write page 418 with an error code of 0000000D. The writing error code 0000000D means that the A disk is full.

FOCUS terminates with a return code of 8, indicating a fatal error.


Top of page

Example: Diagnosis #2

While you are executing a stored procedure that produces a report, the following error message displays:

DMSERD107S Disk E(551) is full
ERROR AT OR NEAR LINE 9 IN PROCEDURE REPORT1 EXEC *
(EDA198) FATAL ERROR IN DATABASE I/O. FOCUS TERMINATING. ERROR
WRITING FOCSORT FOCTEMP E ,PAGE 171 ,CODE=0000000D

In this example, the error code 0000000D was received while writing to the file FOCSORT FOCTEMP E. The E disk was being used as a temp disk (using SET TEMP=E), and FOCUS ran out of sort work space on that mini disk. In this case, the diagnosis is even clearer, since VM issued a DMSERD107S message that the E disk is full just before EDA issued the EDA198 error message.

FOCUS terminates with a return code of 8, indicating a fatal error.


Top of page

Example: Diagnosis #3

If you know why an EDA198 error message occurred, the first thing to do is to check the integrity of the file with a ? FILE command and a REBUILD/CHECK. If the file checks out cleanly and the problem is a disk space issue, obtain a larger mini disk, clear some files from the existing mini disk, and/or move the file to another mini disk that has sufficient free space. If the file does not check out cleanly, you should restore the file from backup and re-run any transactions that changed the data since the backup was taken.

In VM, use a larger tempdisk for the work file. FOCSORT is written to the current TEMP disk (use the ? SET command to find the current tempdisk setting). The command SET TEMP=filemode allows you to change the tempdisk.


iWay Software