RANDOM

Syntax:

RANDOM (*YES | *NO)

Comments:

RANDOM specifies whether random database processing using Keys and RRNs is allowed.  *Yes is the default.

The only I/O operations allowed are:

Input - Read, ReadP and Setll with *Start or *End as the Keys.  Any other operations throw compiler error - "Random Access Operation Not Allowed For File".  The results of Read and ReadP depend on the ORG option and if *INDEXED read them sequentially based on the Key of the file and *ARRIVAL reads in arrival sequence in the file.

Output - Write and Update.

See Also:

DCLDISKFILE

F-Spec

K-Spec