[Info-vax] READ and WRITE vs. SEARCH/OUTPUT
Jan-Erik Soderholm
jan-erik.soderholm at telia.com
Sat Jan 21 12:05:17 EST 2012
Phillip Helbig---undress to reply wrote 2012-01-21 17:29:
> Imagine a file x.x like
>
> A
> A
> A
> B
> A
> A
> B
> A
> A
> A
> A
> B
>
> Would SEARCH x.x B /OUT=X.LIS be better than
>
> $ OPEN/READ IN X.X
> $ OPEN/WRITE OUT X.LIS
> $LOOP:
> $ READ/END=DONE IN REC
> $ IF REC .EQS. "B" THEN WRITE OUT REC
> $ GOTO LOOP
> $DONE:
> $ CLOSE IN
> $ CLOSE OUT
> $ EXIT
>
> Some tests indicate that SEARCH is much faster. Can one depend on this
> always being the case?
>
I would expect a single image activation doing the same "job"
as a DCL script to always beeing faster.
I can't think of a case where the DCL would be faster.
The only reason I see to use DCL would be if the syntax of SEA
can't handle the selection.
Jan-Erik.
More information about the Info-vax
mailing list