Re: ACE Report Filenames
Posted in 1994
Topics: General Discussion
In article <1994Sep21.160818.29824@evolving.com>, Chris Hushour <cwh@evolving.com> wrote: >Anyone know how to pass a filename into an ACE report as an argument >so that multiple users can generate reports from the SAME .arc file >without overwriting what the other users have done? > >I can pass the file name into the .arc with no problem (using the param[] >stuff), but cannot get ACE to use it as an output file... I know this is ugly, but ... A report I used to run needed its "where" clause modified on the fly to select a list of values generated by another report. My solution was to create a dummy .ace with a fixed value for the select values. I used "sed" to replicate the .ace file, replacing the fixed value with the current list of values (stored in a $variable). Then saceprep and sacego ran the replicated .ace file. A similar idea could be used with the "report to" clause of your report. PLMON: sed "s/1111/$LOGS/" RPTS/logs.ace > tmplogs.ace PLMON: if saceprep -s tmplogs PLMON: if sacego -s tmplogs I hope someone has a more elegant solution for you. :-) miked