On Mon, 8 Jun 2009 19:45:37 -0600, Paul Gilmartin wrote: >Will you always know a priori which is the longer file?
Nope. >Do you want to append in place, or copy with padding? >In most cases won't it be more efficient to extract the >lengths from COMMAND LISTFILE Sorry, I meant files in the pipeline, not files on disk. I guess this gets pretty complicated in the general case, especially if I want to avoid delaying records. I could just COUNT both files and then pad the shorter one once both are read to EOF, but it would be nicer to add the pad records as records arrive on the longer file when possible. I suppose DAM could stop reading both files as soon as the count arrives for either one, and then a more complicated pipeline could read the rest of the other file and add the pad records to whichever comes up short. http://users.bestweb.net/~notr "The notion of objecting to a fake Web ¬R site on the grounds that it might possibly incite other people to do bad things is so dangerous to our constitutionally protected freedoms that it must never be mentioned, even in jest." --Matt McIrvin
