As long as I am bothering Rob today...
The output of the pipe I asked about before, gets FTP'd
to a PC, where a Regina program uses it as input.
That program builds a small file for each input record,
using LINEOUT.
The problem there was that Regina was only writing 511 files
(hmmm.. interesting number) and then raising an error
condition. When I was unable to find anything about
such an implementation restriction, or how to override it,
I circumvented the problem by splitting my input file
into lots of smaller files, of 500 lines each.
So, here is where we get to PIPES again.
Is there a way to tell my pipe to split off the output
to a different filename after N records?
I actually used a small REXX exec:
'PIPE COMMAND LIST' FN FT FM '( ALLOC NOHEADER |',
'SPECS W6 1 | VAR RECOUNT'
DO SEG = 1 TO (RECOUNT%500) + 1
COUNT = RIGHT(SEG,3,'0')
START = 1 + ((SEG-1) * 500)
'COPY' FN FT FM FN 'PRTL'COUNT 'A (FROM' START 'FOR 500'
END
So, how could the original pipe have done this?
Or would it be more trouble than it's worth?
Thanks,
Shimon
--
************************************************************************
Shimon Lebowitz mailto:[EMAIL PROTECTED]
VM System Programmer .
Israel Police National HQ.
Jerusalem, Israel phone: +972 2 542-9877 fax: 542-9308
************************************************************************