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.

>   a:  faninany
> !     var c
> !     drop
> !     var line
> !     take
> !     count lines
> !     var found
> ?     diskback CMS      LOGFILE  C
> ! l1: l /005E: 000/
> !     strlit cond /HP10C/
> ! a:
> ? l1:
> ! l2: l /13FE: 000/
> !     strlit cond /HP11P/
> ! a:
> ? l2:
> ! l3: l /005F: 000/
> !     strlit cond /HP12C/
> ! a:
> ? l3: ...

Had to use GATE.

Ciao....Mike
--
www.Ok.de - die kostenlose E-Mail Adresse

Reply via email to