LR (Locate Record)
The LR command scrolls forward or backward to a specified record-number, label, or any record with a label classification.
The command is available in the Browse and Edit functions in Formatted and Unformatted mode and for specifying formatted selection criteria in the Selection Criteria function.

record-number
Specifies the record to which you want to scroll. You can enter a record number of up to 10 digits. If you enter a value that exceeds the number of records in the file, File-AID displays the last record in the file.
label
Specifies the label to which you want to scroll. In character and vertical formatted modes, assign a label by scrolling to any line and entering a label in the sequence number field. In formatted mode, assign a label by entering the label on the command line. The label is a period followed by up to five characters. Enter the label in the format .xxxxx, where x is any alphabetic character, A through Z.
LABEL (LAB)
Locates an occurrence of a record having a user-specified label.
NEXT, PREV, FIRST, LAST
Use the NEXT, PREV, FIRST, or LAST values to locate the next, previous, first, or last occurrence of a labeled record. The following table summarizes the functions of these parameters.
LR Field Syntax Search Values
Parameter | Search Direction | Origin of Search |
|---|---|---|
NEXT | Forward | Current cursor position |
PREV | Backward | Current cursor position |
FIRST | Forward | Start of data or specified line range |
LAST | Backward | End of data or specified line range |