Re: Multiple Reports to One File
Posted in 2006
kimmerkc wrote: > Obnoxio The Clown wrote: > > >>Before you run the report: >> >>RUN "> filename" >>... >> >>Then: >>START REPORT items TO PIPE "cat >> filename" >>... >> >>START REPORT containers TO PIPE "cat >> filename" >>... >> >>? >> > > Thank you! > > One further question. I've found this only works if I FINISH the first > report before writing output to the second. If I wait to FINISH both > at the end I get unpredictable results - especially when I expand this > to three separate reports. > > Closing each before opening the next actually works for me - just > wondering if anyone has a suggestion to adress this limit for future > needs. Not so much a limit as how 4GL creates reports. The output is actually spooled to a temp table and flushed to the output file/pipe from there when you finish a section of the report or CLOSE the report. The 'write to separate files in parallel and cat them together is the only other way to do this. Art S. Kagel