guides:programming:programmers_reference_manual:readnext_mfs_code

READNEXT

Used to return a block (group) of record keys for processing.

ArgumentInput/OutputValue
CODEInput8
Outputunchanged
BFSInputBFS List
Outputunchanged
HANDLEInputFile Handle
Outputunchanged
NAMEInputSelect mode (1 or 2)
OutputIf select mode is 1, returned unchanged; if select mode is 2, returned with null
FMCInputIf select mode is 1, passed the select pointer. If select mode is 2, the first call passes the sort field, and subsequent calls pass the select pointer
OutputUpdated select pointer if a new key list is returned in RECORD, otherwise false
RECORDInputIf select mode is 1, pass null (first call) or the old key list (secondary call). If select mode is 2, pass the sort specification
OutputKey list delimited with @FM; unchanged from input if status is false
STATUSInputFalse, or READNEXT direction if a secondary call
OutputTrue if a new list of keys is being returned in RECORD, false if no new keys are available

An MFS should not alter the select pointer passed in the FMC argument unless the MFS is assuming responsibility for maintaining the pointer. A secondary call refers to the second or subsequent READNEXT call made in conjunction with the currently active select list. For more information on sort specifications, see the SORT.SPEC.DEFINES equate record in Appendix 4.

BASIC+ READNEXT statement if no keys are currently available in the system list variable.

  • guides/programming/programmers_reference_manual/readnext_mfs_code.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1