POINT(ddname[,keyin][,options])
Note: The format of the keyin argument is different for different types of data sets and data set accesses. Please see "Specifying the Keyin Argument" below for more information.
The primary use of POINT is to position VSAM for subsequent sequential access (beginning at a location that is not the first record of the data set).
Note: POINT is especially useful for switching between forward and backward sequential processing without closing the data set.
Specifying the Keyin Argument:
The format of the keyin argument varies, depending upon the type
of data set you are processing and the type of access you have
requested. If you are using addressed access (the ADR option), or
if you are processing by control interval (the CNV option), the
value of key must be a relative byte address (RBA) in REXX
printable integer format. Similarly, if you are processing an
ESDS using direct access, the argument must be a RBA. For RRDSs
the value of keyin must be a relative record number (RRN) in REXX
printable integer format.
For KSDS keyed (but not addressed) access, the value of keyin must be either a full-length (option FKS) or generic (option GEN) key. Generic keys are used to find records that have the same prefix characters. For example, the generic key 'D' matches with 'DAVID', 'DOG', and 'DAD'. As this example demonstrates, generic keys usually have fewer characters than full keys, although this is not a requirement. If you specify a key that is longer than the full key length, the value is truncated on the right. If you specify a key that is shorter than the full key length and you have not specified the GEN option, the key is padded on the right with binary zeros up to the length of the full key.
After completion of a POINT function call, the RC and REASON variables will contain return code information. If the function call was successful, several other special REXX variables are created. You should treat these variables as "read only" and make no attempt to modify any of them. The variables are:
call point 'indd', , '(lrd,bwd)' do while rc = 0 call get 'indd' say 'result='result endAfter the POINT, options do not need to be re-specified, since the BWD option stays in effect until it is changed by another request.