You can loop through the subfile to find the desired record
with a for loop
for x = 1 to currentSFSize
x chain subfilerecord name
use the x value of the desired record to set the variable for the SFLRCDNBR
The SFLRCDNBR should be conditioned with (CURSOR) and that’s all that’s necessary to
get your cursor on a particular record of the subfile.
A SFLRCD 4S 0H SFLRCDNBR(CURSOR)