SNIP
I believe that the problem may be related to TBDISPL rather than TBSCAN.
After your first TBSCAN, I assume that you are issuing TBDISPL to facilitate
entering of "FIND" in the primary command area. If this is indeed the case,
TBDISPL will reset the CRP to 0 if now row is selected when you press <enter>
to process the FIND command.
If I have described your scenario, the solution is:
1) In the first TBSCAN, save the CRP in a variable using the POSITION keyword.
2) After <enter> is pressed to process FIND, invoke the TBSKIP service to
reposition to that CRP before issuing the second TBSCAN.
Hope that helps!
Alan
SNIP
Trying it now. Thanks very much. I could not find that in the manuals
anywhere.
--Dave
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html