promem_da
New Member
Hi,
I'm also using same type of query as mentioned above:
for each po USE-INDEX po-index
where po.cd-whs = 10
and po.estatus = 2
no-lock:
... procedure ...
end.
Find last po USE-INDEX po-index
where po.cd-whs = 10
and po.estatus = 2 no-lock no-error.
po-index is the Primary-Unique index on the table and hence i want to use that index while querying using for each or find last statement.
There are other index (incb-index) having the same fields cd-whs and estatus which is a not primary index.
Hence am forcing to use primary-unique index (po-index) to fetch the correct record from database using USE-INDEX.
But my question here is when i did XREF the "SEARCH" still shows the incb-index only, even though i specified "USE-INDEX po-index" to use it?
Does that mean USE-INDEX has no significance.
Can someone please throw some light on it..!
I'm also using same type of query as mentioned above:
for each po USE-INDEX po-index
where po.cd-whs = 10
and po.estatus = 2
no-lock:
... procedure ...
end.
Find last po USE-INDEX po-index
where po.cd-whs = 10
and po.estatus = 2 no-lock no-error.
po-index is the Primary-Unique index on the table and hence i want to use that index while querying using for each or find last statement.
There are other index (incb-index) having the same fields cd-whs and estatus which is a not primary index.
Hence am forcing to use primary-unique index (po-index) to fetch the correct record from database using USE-INDEX.
But my question here is when i did XREF the "SEARCH" still shows the incb-index only, even though i specified "USE-INDEX po-index" to use it?
Does that mean USE-INDEX has no significance.
Can someone please throw some light on it..!