Bruce Johnston 15, '04:
You can also create a dynamic index via ILF (at least from 4.1 through 4.2.2).
Given two fields, DGA FDRFEPR FED WASTE PRE and DGA FDRFEPR FED WASTE SUF, if I want to sort by the PRE and then by the SUF, both in ascending order, I use the following...
PASS DGA FDRFEPR FED WASTE PRE FIELD SHARE? N
PASS DGA FDRFEPR FED WASTE SUF FIELD SHARE? N
CALL ,PI_DYNA_BLD RESIDENT? N END? N FAIL 0
If I wanted to change the default order of any to reverse it I'd simply double up its PASS command as in...
PASS DGA FDRFEPR FED WASTE PRE FIELD SHARE? N
PASS DGA FDRFEPR FED WASTE SUF FIELD SHARE? N
PASS DGA FDRFEPR FED WASTE SUF FIELD SHARE? N
CALL ,PI_DYNA_BLD RESIDENT? N END? N FAIL 0
which gives the records sorted by the PRE in ascending order followed by the SUF
in descending order.
I believe that it was Korry who first told me this. |