Please enable JavaScript to view this site.

A-Shell 6.5 Development Notes

XOPEN #ch, fspec, mode, flags

This is equivalent to the traditional OPEN statement for ISAM files, except:

XOPEN eliminates the implicit connection between the fstat and recno variables normally specified in the OPEN, and the file access statements. The recno and fstat parameters are eliminated.
XOPEN allows for the various flags (WAIT'RECORD, WAIT'FILE, END'FILE,...) which must normally be specified as literals to the compiler to instead be evaluated at runtime.

The values for flags are:

Symbol

Value

Modifiers*

FDVF_READONLY

&h1000

READ'ONLY

FDVF_END_FILE

&h2000

END'FILE

FDVF_W_RECORD

&h4000

WAIT'RECORD

FDVF_W_FILE

&h8000

WAIT'FILE

Definition file: ashinc:addsfdv.def

 

* These are the literal file OPEN modifiers that can be tacked on to the end of an ISAMA OPEN statement.