js@UW-JUNE.ARPA (A. K. Ulgai) (08/29/86)
Sorry, I don't know how to retract an article, so, since I answered my own question I thought I'd post the answer and see if anybody has a better idea. As a reminder, I wanted to parse a command such as - SORT/KEY=(POS:10,SIZ:20)/KEY=(POS:1,SIZ:9) It turns out I need to do the following: (pretend theres error checking) status=cli$present('KEY') status=cli$next_qual('KEY') ! undocumented routine loop: ! this loop pulls apart each /KEY qualifier ! i.e. for above example, it returns POS:10 and SIZ:20 the first ! two times through status=cli$get_value('KEY',qualval) if status then goto loop ! this moves it to the next /KEY qualifier or returns an error status=cli$next_qual('KEY') if status then goto loop Of course, I hate using undocumented routines, esp. when I just wildly guess at how to use it until I get a configuration that works, so if anyone from DEC cares to enlighten me as to its status I'll be happy to heed their advice.. Thanks and cheers, Joe Meadows Jr. js@uw-june.arpa