ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

COBOL-FILE STATUS


Enviado por   •  11 de Junio de 2013  •  1.376 Palabras (6 Páginas)  •  515 Visitas

Página 1 de 6

wCOBOL – File Status

00

Successful

No further information

02

Successful

The input-output statement was successfully executed, but a duplicate key was detected.

READ

Next record had duplicate key.

WRITE, REWRITE

Duplicate key created for at least one alternate record key for which duplicates are allowed.

04

Successful

A READ statement was successfully executed, but the length of the record being processed did not conform to the fixed file attributes for that file.

READ

Bad record definition.

05

Successful

An OPEN statement is successfully executed but the referenced optional file that is not present at the time the OPEN statement is executed. If the open mode is I-O or EXTEND, the file has been created. For a VSAM sequential file, if the open mode is I-O or EXTEND, the file has not been created, and file status 0 is returned.

OPEN

Optional file not found.

07

Successful

For a CLOSE statement with the NO REWIND, REEL/UNIT, or FOR REMOVAL phrase or for an OPEN statement with the NO REWIND phrase, the referenced file was on a non-reel/unit medium.

OPEN, CLOSE

Reel/unit command(s) for non-reel/unit device.

10

At end

A sequential READ statement was attempted and no next logical record existed in the file because the end of the file had been reached, or the first READ was attempted on an optional input file that was not present.

READ

End-of-file reached or first read on optional file.

14

At end

A sequential READ statement was attempted for a relative file and the number of significant digits in the relative record number was larger than the size of the relative key data item described for the file.

READ

RRN beyond end of file.

21

Invalid key

A sequence error exists for a sequentially accessed indexed file. The prime record key value has been changed by the program between the successful execution of a READ statement and the execution of the next REWRITE statement for that file, or the ascending requirements for successive record key values were violated.

WRITE, REWRITE

Record out of sequence.

22

Invalid key

An attempt was made to write a record that would create a duplicate key in a relative file; or an attempt was made to write or rewrite a record that would create a duplicate prime record key or a duplicate alternate record key without the DUPLICATES phrase in an indexed file. This key value applies to an indexed file in which the alternate key has been declared 'UNIQUE'. WRITE, REWRITE

Duplicate key error.

23

Invalid key

An attempt was made to randomly access a record that does not exist in the file, or a START or random READ statement was attempted on an optional input file that was not present.

READ, DELETE

Record not found.

START

Specified key not found.

24

Invalid key

An attempt was made to write beyond the externally defined boundaries of a relative or indexed file. Or, a sequential WRITE statement was attempted for a relative file and the number of significant digits in the relative record number was larger than the size of the relative key data item described for the file.

WRITE

Out of space.

30

Permanent error

No further information (unrecoverable I/O error).

34

Permanent error

A permanent error exists because of a boundary violation; an attempt was made to write beyond the externally-defined boundaries of a sequential file.

WRITE, REWRITE

Boundary violation.

35

Permanent error

An OPEN statement with the INPUT, I-O, or EXTEND phrase was attempted on a non-optional file that was not present.

OPEN

Non-optional file is not present.

37

Permanent error

An OPEN statement was attempted on a file that would not support the open mode specified in the OPEN statement. Possible violations are:

1.The EXTEND or OUTPUT phrase was specified but the file would not support write operations.

2.The I-O phrase was specified but the file would not support the input and output operations permitted.

...

Descargar como (para miembros actualizados) txt (8 Kb)
Leer 5 páginas más »
Disponible sólo en Clubensayos.com