Re: reporting into different files with one report
Posted in 1995
Joerg Spilker (Joerg_Spilker@daolin.fido.de) wrote: : Hi, : i need to report data into three different files simultaneously. The format is : the same for all three files. I don't want to make three copies of the report : which are opened with different file names. Any idea? : I tried with the REPORT TO variable statement in the report itself and : "variable" was a report parameter with the filename to report to. But all data : goes into the file passed first to the report. Later changes in the parameter : have no effect. Howabout REPORT TO PIPE "tee file_one | tee file_two >file_three"? (I haven't tried this, but why not?) I think "tee" does unbuffered I/O, so the outputs would be syncronized, if it matters. I have found that attempting to call reports recursively is problematic because all report variables and parameters seem to be allocated with static (permanent) storage, unlike functions. I'm not suprised by your results. : Greetings, Joerg -Jeff