IN the following code I am getting the above error because of the SKIP command. But when I comment out. I get into an endless loop. How do I fix? When I do the same set of code earlier on a different table, I don't get this error.
Select 1
Use SHELF_DATE_TOTAL
Select 2
Use D:\FAIL_RPT\SHELF_tot_out
*Keep from data overflow
REPLACE FAIL_PCT WITH 0 FOR !EOF()
Select 2
Go TOP
Scan
Select 2
Locate FOR ship_date=A->DATE_rec
If FOUND()
Replace FAIL_QTY WITH A->qty
Replace REP_QTY WITH A->REP_QTY
If qty>0
Replace FAIL_PCT WITH FAIL_QTY/qty
Endif >0
Endif
Select 1
****This is having a problem why??
**Skip
Endscan
Select 1
Use SHELF_DATE_TOTAL
Select 2
Use D:\FAIL_RPT\SHELF_tot_out
*Keep from data overflow
REPLACE FAIL_PCT WITH 0 FOR !EOF()
Select 2
Go TOP
Scan
Select 2
Locate FOR ship_date=A->DATE_rec
If FOUND()
Replace FAIL_QTY WITH A->qty
Replace REP_QTY WITH A->REP_QTY
If qty>0
Replace FAIL_PCT WITH FAIL_QTY/qty
Endif >0
Endif
Select 1
****This is having a problem why??
**Skip
Endscan