Re: NewEra: this report don't work. What's wrong?
Posted in 1997
luismi@cot.es (Luis Miguel Agudelo) wrote: :This is a multi-part message in MIME format. :------------3C704ABA5E260 :Content-Transfer-Encoding: 7bit :Content-Type: text/html; charset=us-ascii It would have been slightly :-) better if you posted in plain ascii, not html encoded. I have decoded it below. You forgot to explain what does happen. What's the problem? The skip to top of page should of course be executed ones for each change in value of item1 except for the first row (where it allready is at the top of the page). Your post (non quoted due to translation system): This code don't work in NewEra 2.20 WC1. The before group must be executed 4 times, but in NewEra this don't happen. Why? -- begin of code MAIN START REPORT example_report TO "lm1.txt" OUTPUT TO REPORT example_report(1,1) OUTPUT TO REPORT example_report(1,2) OUTPUT TO REPORT example_report(1,3) OUTPUT TO REPORT example_report(2,2) OUTPUT TO REPORT example_report(3,3) OUTPUT TO REPORT example_report(4,4) FINISH REPORT example_report END MAIN REPORT example_report(item1, item2) define item1 decimal(2,0), item2 decimal(2,0) output left margin 0 right margin 80 top margin 1 bottom margin 1 page length 66 order external by item1, item2 format page header print "------------------------------------------------------------" print " PAGE HEADER" print "------------------------------------------------------------" before group of item1 skip to top of page on every row print "item1: ", item1, " item2: ", item2 page trailer print "----------------------- PAGE TRAILER -----------------------" END REPORT -- end of code Is this a bug or am I a ...? :-) Thank's in advance Nils.Myklebust@idg.no NM Data AS, P.O.Box 9090 Gronland, N-0133 Oslo, Norway My opinions are those of my company The Informix FAQ is at http://www.iiug.org