Summary of Access Modes

Mode

Notes

DIR=num

Moves the record pointer num records forward or backward in logical order. The sign of num determines the direction to move: positive is forward, negative is backward. The absolute value of num determines the number of records skipped. DIR=0 means do not move the pointer. Normal reading assumes DIR=1. The pointer is moved after the I/O operation is completed.

DOM=lineno

Transfer control if an !ERROR=11 (duplicate or missing key) occurs.

END=lineno

Transfer control if an !ERROR=2 (end of file) occurs.

ERR=lineno

Transfers execution to lineno if error not trapped by DOM= or END=.

IND=num

Accesses file by record number/position in file.

ISZ=num

Used only by OPEN command to open any PRO/5 file as a STRING file. (If a PROGRAM file, use ISZ=-1.)

KEY=str

Accesses file by key string, valid only on keyed files.

KNUM=num

Sets key chain to be used in MKEYED multiple key file. If no key specified, places key pointer to first record in file.

SIZ=num

Restricts a field or record to num characters.

TBL=lineno

Translates characters on READ/WRITE.

TIM=num

If blocked from reading, try num seconds before returning an!ERROR=0. A TIM=0 defines a minimum wait.