Re: output section
Posted in 1994
In response to Brian London's query >>Fellow sqler's and 4gler's, >> >>If this is a trivial question forgive me but.... >> >>Is there a way to "variablize" the report to statement so a user can input >>the destination, in either 4gl or ace reports. So far the only solution I Jonathan Leffler wrote: >Well, what about: > > CALL report_destination("report_name") RETURNING rep_dest, > rep_name > > CASE > WHEN rep_dest = 0 START REPORT report_name > WHEN rep_dest = 1 START REPORT report_name TO PRINTER > WHEN rep_dest = 2 START REPORT report_name TO rep_name > WHEN rep_dest = 3 START REPORT report_name TO PIPE rep_name > OTHERWISE > ???? > END CASE Nice one, Jonathan, but can you do something similar in ACE? My solution has been *always* to send to a file, then use a UNIX script to ask the user where he wants the report to go. Have you a more elegant solution? ** Opinions expressed are my own and not necessarily those of my employer ========================================================================= Barry Toomey Phone +353-1-2822333 AT&T Network Systems Ireland Fax +353-1-2822864 Corke Abbey Avenue, email: bt@irl3b2c.att.comm Bray, uunet: att!irl3b2c!bt Co. Dublin Ireland =========================================================================