NextRelEffDt
Mon 01 January 2018Syntax
NextRelEffDt(search_field, fetch_field)
where fieldlist is an arbitrary-length list of fields in the form:
field1 [,field2]. . .
Description
Use the NextRelEffDt function to locate the next occurrence of the search_field with the next effective date (and effective sequence number if the record contains an effective sequence number). It then returns the value of the specified fetch_field corresponding to the search_field . The return value is an Any data type. Typically, this function is used to retrieve values for related display fields.
This function is valid only for effective-dated records.
If a next record doesn't exist, the statement is skipped. If the NextRelEffDt function isn't a top-level statement, that is, if it's contained within a compound statement or a loop, the statement is skipped and execution restarts with the next top-level statement.