Well aware of all that, especially the negative numbers issue. I restrict use of AR, DR locates to non-negative integers.
Otherwise I use comparisons inside of a loop. -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Charles Stevenson Sent: Monday, September 24, 2012 3:44 PM To: U2 Users List Subject: Re: [U2] Unidata 7.1.16 Multiple Active Select Lists Dave, Be careful with that because LOCATE's sort BY "AR" or "DR" may be different from LIST's sort BY an "R"-justified field. Leading zeros, negative numbers, decimals with trailing zeros all come to mind. If I recall that inconsistency is consistent across several MV platforms. However, it might be more consistent of UD to be inconsistent with the MV-world (the MV-universe) on this point. cds On 9/24/2012 1:04 PM, Dave Davis wrote: > What we do in situations like this is set up a subroutine that retrieves the > list of record keys in "B", given the value of the index I want to retrieve. > This can then be called from an I-type in "A", or from another subroutine. > > I do the sort the hard way (in basic) so that the keys are in the > correct order, usually using LOCATE with "AL" or "AR" and INSERT _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users ________________________________ Dave Davis Team Lead, R&D P: 614-875-4910 x108 F: 614-875-4088 E: dda...@harriscomputer.com [http://www.harriscomputer.com/images/signatures/HarrisSchools.gif] [http://www.harriscomputer.com/images/signatures/DivisionofHarris.gif]<http://www.harriscomputer.com/> 6110 Enterprise Parkway Grove City, OH 43123 www.harris-schoolsolutions.com<http://www.harris-schoolsolutions.com> This message is intended exclusively for the individual or entity to which it is addressed. This communication may contain information that is proprietary, privileged or confidential or otherwise legally exempt from disclosure. If you are not the named addressee, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message. _______________________________________________ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users