The OPENMODE field can
be one of the following values:
The data set is opened
for input mode.
The data set is opened
for output mode.
The data set is opened
for append mode.
The data set is opened
for update mode (read and write).
When this function receives
control, the Pointer to User Maximum Data Size field (OPENZLEN) points
to a fullword that contains the Data Set Record Size. In this function,
set the pointer so that it points to a fullword that you initialize.
The fullword should contain the size of the largest record that you
expect to process with the Read function. If it contains a lesser
value, then truncated records might be passed to the Read function.
The Data Set Record
Format field (OPENRECF) can be any combination of the following values:
indicates Undefined
format.
indicates Variable
format.
indicates Blocked format.
indicates Spanned format.
indicates ASA Control
Characters format.
The Open function should
activate any subprocesses or exits and should solicit from them any
virtual storage requirements.
In this function, if
you turn on the EX_NEXT flag in the UEBCB, then SAS calls the Read
function for the first record before it reads any records from the
file itself.
If you use any SAS service
routines (such as the ALLOC and FREE routines) in this function, then
you must set the EX_ALC flag in the UEBCB.