The way I mentioned (and I do realize it calls for a redesign which is probably not practical now) is that ALL lines after the MEMBERS keyword would be userids and not keywords. When a list is read in, its starts reading in keyword mode. For each keyword, its sets some data. When the MEMBERS keyword is found, it switches to members mode, and each line till the end of file is a userid, unless it begins with a "*" in which case it is ignored. The "*" lines should properly be discarded at a lower level of list reading where it is unconcerned about the mode. Sorting the list is not hard in XEDIT, just go to top, find MEMBERS, down 1, and sort from there to end. 'COMMAND LOCATE -* FIND MEMBERS' 'COMMAND LOCATE +1 MACRO SORT * A' col1 col2