This probably hopeless.

I have a file which is a COPYFILE (PACK)ed VMSES/E SERVLINK package
in VMFPLCD format.  (PACKed less to save space than to be internet-safe.)
I want to convert it to a VMFPLC2 AWSTAPE image.  I'd like not to
use a scratch tape.  I'd even like not to LOAD the entire package
to disk then DUMP it.

How much can Pipelines help me here?  It seems like an obvious piping
problem for which the stages don't exist.

BTW, what's the proper way to copy N records from an input
stream to an output stream, leaving the input stream positioned
to read the next record.  I can certainly code procedurally:

    do I = 1 to N
        readto X
        output X
        end I

I can imagine:

    callpipe *.input: | take N | *.output:

but does that discard the remainder of the input stream?
Does it depend on whether a secondary output stream is
connected?  Ah!  The Reference makes clear where the
Author's Edition doesn't.  They're discarded.  I guess
I need to read both.

Thanks,
gil

Reply via email to