Mark, C/$/"CP QUERY DASD $"/* > Alas, testing revealed that the trailing quote doesn't get inserted. How > come? >
Your trailing doublequote got truncated but XEDIT remained silent, right? That's one tiny quirk you've got to remember (or it gets etched into your mind anyway) when using the arbchar. Since your first $ is not followed by anything, it represents the whole line including all the trailing blanks up to zone2 column. If you have "SET ZONE 1 *" and you're making the line longer with your change, the trailing doublequote in your example will get truncated but XEDIT will *not* tell you that. Also, the line will *not* spill even if SPILL is ON. There may be a reason why the designer decided to do it this way, but I cannot think of one. To drop the first word and surround the result with doublequotes by using only CHANGE command, you'd have to use at least two, eg: c/$ /"CP QUERY DASD /* c/ /"/* 1 4 -or- c/DASD $ /DASD $"/* Ivica Brodaric BNZ