VSAM does not allow you to process records while you
are loading the data set. You can put the initial records into the
data set, but you cannot read, update, or erase any of these records
until the data set is closed. Because of this restriction, SAS requires
you to use only a FILE statement, instead of both an INFILE and a
FILE statement, for a VSAM data set that is to be loaded. You must
also specify the
VSAMLOAD System Option. After the data set is loaded and closed, you can add,
update, or erase records when the
VSAMUPDATE System Option is in effect.
You can read from and
write to records in any other data set within the same DATA step that
you use to load a VSAM data set. (For example, you can load a VSAM
data set based on records that you are processing from another data
set.)
VSAM requires you to
load a KSDS sequentially in key order. You can load an RRDS either
sequentially in record order or directly by using the RRN= direct-access
option in the FILE statement. An ESDS can be loaded only sequentially.