On 14 August 2016 at 12:20, <[email protected]> wrote: > Hello all, > > in the description of LITERAL (which includes STRLITERAL) I find > > > Premature Termination: "literal" terminates when it > > discovers that its output stream is not connected. > > and assumed this holds true for STRLIT COND too. Following pipe > looks for only one of several tags located near the end in a quite > large logfile to determine the next step. When I looked at it with > PIPEDEMO I wondered as I assumed after any LOCATE got a hit TAKE > will end FANINANY and in consequence of it DISKBACK too. Alas the > LOCATE/STRLITERAL branches stay alive and scan the complete input > file - with no output stream connected. > > Really works just fine. I created an input file with one of those targets near the end, and added this after the "diskback" '| c: not count lines | insert ,Lines:, | cons \ c:',
Shows me that just enough lines were read until there's a match. It does depend on what you have at the end on the " ..." If there's something that consumes all records that did not match any of the selections in the cascade, you will read the entire file. Rob
