You probably need to use SFLRCDNBR(CURSOR). There are some good resources around to help you with subfiles :-
<a href=”http://www.itjungle.com/mpo/mpo050803-story04.html”>Part 1</a>
<a href=”http://www.itjungle.com/mpo/mpo052203-story04.html”>Part 2</a>
<a href=”http://www.itjungle.com/mpo/mpo060503-story04.html”>Part 3</a>
These are a few links posted earlier by Sloopy, I think they also cover this subject.