PH Dictionary Sort
Pickering, John (NORBORD)
PICKERIJ@norbord.com
Thu, 24 Jun 1999 17:20:05 -0400
>We are running PH version 7.29.c8 and are wanting to add into our DDSRC
file
>a second sort field on a repeating index in an Image Detail dataset.
>However when we attempt to compile the dictionary we get on the second sort
>field the error message "expected : alternate, ascending, etc". Does
anyone
>know if we can do this.
Image supports only one sort item, as in:
Index INDEX-ITEM Repeating Primary &
Links To MASTER-FILE &
Sort On SORT-ITEM
Segment INDEX-ITEM
To accomplish what you want (if I'm interpreting it correctly) you could
simply put the second item immediately after the first in the detail
dataset. For identical keys with identical sort items Image will use the
remainder of the record immediately after the sort item to order the records
(see "extended sort item" in an Image manual). If you feel insecure relying
only on the order of the items in the set (can you trust all future
maintainers of the set to retain the order?) then you could use a structure
consisting of the 2 sort items and sort on this compound field. Put the
CREATE option on the compound item to ensure that it gets built in the Image
set.
John Pickering
Toronto
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.