Greetings - I would like to assign a row number to a query result list based on the descending order of inventory value. Here is my code:
[FONT=r_ansi][FONT=r_ansi]for each icsw no-lock where (cono = 1)
BY qtyonhand * avgcost DESCENDING:
if qtyonhand * avgcost >= 1500 then do:
disp whse prod countfl qtyonhand qtyonhand * avgcost label 'item value'
with width 420.
end.
end.
What is the best function for this? My Progress Language Reference is not clear on this.
Thanks for your help!

[/FONT][/FONT]
[FONT=r_ansi][FONT=r_ansi]for each icsw no-lock where (cono = 1)
BY qtyonhand * avgcost DESCENDING:
if qtyonhand * avgcost >= 1500 then do:
disp whse prod countfl qtyonhand qtyonhand * avgcost label 'item value'
with width 420.
end.
end.
What is the best function for this? My Progress Language Reference is not clear on this.
Thanks for your help!

[/FONT][/FONT]