REPOSITA


9.1

 

The REPOSITA instruction uses the AAM index position data returned by FPOSITA instruction to set the current AAM index file variable position. This allows the READKG and READKGP instructions to retrieve the next appropriate record. The instruction format is a follows:

 

 

[label]

REPOSITA

{afile}{sep}{pos}[,{key}[...]]

 

Where:

label

Optional. A Program Execution Label.

afile

Required. A previously defined and opened AFILE variable whose current position is set.

sep

Required. A comma or one of the following prepositions: BY, TO, OF, FROM, USING, WITH, IN, or INTO.

pos

Required. A previously defined Character String Variable that contains the data used to restore the index position.

key

Optional. One or more previously defined Character String Variables or VARLISTs of Character String Variables that contain specific key data used to reset the index position.

Flags Affected: none

Note the following:

  1. The data in {pos} must contain data returned by a FPOSITA instruction or an I29 error occurs.

  2. If the {key} data variables are provided, it replaces the key data in the {pos} variable before the AAM index position is reset.

  3. The format of the {key} data is the same as defined for the READ AFILE instruction.

 

 

See Also: FPOSITA, Disk I/O Instructions

 



PL/B Language Reference REPOSIT SCHEMA