On Friday, 07/09/2010 at 09:25 EDT, Mark Pace <[email protected]> wrote: > I'm trying to rewrite an old exec into a pipe. While testing I had the pipe > write the output to the console and it's working as expected. I replaced > | console with > | > TEMP DATA A1 > and it does not create the file. change it to console and it works again. > Am I missing something obvious? > > Do i = 1 to files.0 > 'PIPE ', > '<' files.i '|', > 'casei zone 1-* locate /'LookFor'/ |', > 'specs /'files.i'/ 1 |', > 'unique |', > '> TEST DATA A1' > end
I think you want >> instead of >. With >, the file is erased if there are no input records. Alan Altmark z/VM Development IBM Endicott
