On Nov 24, 2010, at 00:13, Rob van der Heij wrote: >> >> PIPE < FOO BAR A | LOCATE something | > FOO BAR A > > So this keeps only the lines that match the string, possibly not > leaving a file at all.
I would be delighted if that happened. In a case that I can't reproduce in a simple test, it was leaving the original file unmodified. Perhaps I should have experimented with "FINIS * * *" or the like. As it is, I've settled on: ERASE TEMP FILE FM PIPE ... > TEMP FILE FM ERASE REAL FILE FM RENAME TEMP FILE FM REAL FILE FM > If that's not what you want, what *do* you expect? An empty file on > SFS? In that case, Thanks, and thanks to John Hartmann for his ALLOWEMPTY suggestion. Alas, as I reported initially, our systems programmer declines to put SFS in production. Thanks again, gil
