IBM0809S
ONCODE=oncode-value An invalid file operation was attempted on file file-name.

Explanation

An attempt was made to perform an invalid operation on a file. For example, it is not possible to run a REWRITE statement on a STREAM file, read an output file, or write an input file. Refer to the table below for a list of operations and conflicting file organizations.
Table 1. Operations and Conflicting File Organizations
Statement/Option File Organization
Any record I/O statement STREAM
Any stream I/O statement RECORD
READ OUTPUT
READ SET UNBUFFERED
READ EVENT UNBUFFERED
READ KEY REGIONAL SEQUENTIAL or CONSECUTIVE
READ IGNORE DIRECT
READ NOLOCK SEQUENTIAL or INPUT
WRITE INPUT SEQUENTIAL UPDATE, INDEXED DIRECT NOWRITE, REGIONAL (not KEYED)
WRITE EVENT BUFFERED
REWRITE INPUT or OUTPUT
REWRITE (without FROM) UNBUFFERED or DIRECT
REWRITE KEY SEQUENTIAL
REWRITE EVENT BUFFERED
LOCATE INPUT or UPDATE, UNBUFFERED, DIRECT
LOCATE KEYFROM INDEXED or REGIONAL (without KEYED)
DELETE INPUT or OUTPUT, CONSECUTIVE, REGIONAL SEQUENTIAL, RKP=0 (blocked records), OPTCD=L not specified
DELETE KEY SEQUENTIAL
UNLOCK INPUT or OUTPUT, SEQUENTIAL
GET OUTPUT
PUT INPUT
The ONCODE associated with this message is 1009.

System action

The ERROR condition is raised.

Programmer response

Ensure the file declaration and the input/output statements for the named file are compatible.

Symbolic Feedback Code

IBM0P9