NewEra: this report don't work. What's wrong?
Posted in 1997
Topics: General Discussion
This is a multi-part message in MIME format. ------------3C704ABA5E260 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii <HTML><BODY> 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? <BR> <BR><TT>-- begin of code </TT> <BR><TT></TT> <BR><TT>MAIN</TT> <BR><TT> START REPORT example_report TO "lm1.txt"</TT> <BR><TT> OUTPUT TO REPORT example_report(1,1)</TT> <BR><TT> OUTPUT TO REPORT example_report(1,2)</TT> <BR><TT> OUTPUT TO REPORT example_report(1,3)</TT> <BR><TT> OUTPUT TO REPORT example_report(2,2)</TT> <BR><TT> OUTPUT TO REPORT example_report(3,3)</TT> <BR><TT> OUTPUT TO REPORT example_report(4,4)</TT> <BR><TT> FINISH REPORT example_report</TT> <BR><TT>END MAIN</TT> <BR><TT></TT> <BR><TT></TT> <BR><TT>REPORT example_report(item1, item2)</TT> <BR><TT></TT> <BR><TT> define item1 decimal(2,0), </TT> <BR><TT> item2 decimal(2,0)</TT> <BR><TT></TT> <BR><TT> output</TT> <BR><TT> left margin 0</TT> <BR><TT> right margin 80</TT> <BR><TT> top margin 1 </TT> <BR><TT> bottom margin 1</TT> <BR><TT> page length 66</TT> <BR><TT></TT> <BR><TT> order external by item1, item2</TT> <BR><TT></TT> <BR><TT> format</TT> <BR><TT></TT> <BR><TT> page header</TT> <BR><TT> print "------------------------------------------------------------"</TT> <BR><TT> print " PAGE HEADER"</TT> <BR><TT> print "------------------------------------------------------------"</TT> <BR><TT></TT> <BR><TT></TT> <BR><TT> before group of item1</TT> <BR><TT> skip to top of page</TT> <BR><TT></TT> <BR><TT></TT> <BR><TT> on every row</TT> <BR><TT> print "item1: ", item1, " item2: ", item2</TT> <BR><TT></TT> <BR><TT></TT> <BR><TT> page trailer</TT> <BR><TT> print "----------------------- PAGE TRAILER -----------------------"</TT> <BR><TT></TT> <BR><TT>END REPORT</TT> <BR><TT></TT> <BR><TT>-- end of code </TT> <BR> <BR> <BR>Is this a bug or am I a ...? :-) <BR> <BR>Thank's in advance <BR> <BR>-- <BR>Luis M. Agudelo Jimenez <BR>luismi@cot.es <BR> </BODY> </HTML> ------------3C704ABA5E260 Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-Type: message/rfc822 Message-ID: <332444C6.4A43@cot.es> Date: Mon, 10 Mar 1997 18:28:40 +0100 From: Luis Miguel Agudelo <luismi@cot.es> X-Mailer: Mozilla 4.0b2 (Win95; I) MIME-Version: 1.0 To: informix-list <informix-list@rmy.emory.edu> Subject: NewEra: this report don't work. What's wrong? X-Priority: 2 (High) Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii <HTML><BODY> 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? <BR> <BR><TT>-- begin of code</TT> <BR> <BR><TT>MAIN</TT> <BR><TT> START REPORT example_report TO "lm1.txt"</TT> <BR><TT> OUTPUT TO REPORT example_report(1,1)</TT> <BR><TT> OUTPUT TO REPORT example_report(1,2)</TT> <BR><TT> OUTPUT TO REPORT example_report(1,3)</TT> <BR><TT> OUTPUT TO REPORT example_report(2,2)</TT> <BR><TT> OUTPUT TO REPORT example_report(3,3)</TT> <BR><TT> OUTPUT TO REPORT example_report(4,4)</TT> <BR><TT> FINISH REPORT example_report</TT> <BR><TT>END MAIN</TT> <BR> <BR> <BR><TT>REPORT example_report(item1, item2)</TT> <BR> <BR><TT> define item1 decimal(2,0), </TT> <BR><TT> item2 decimal(2,0)</TT> <BR> <BR><TT> output</TT> <BR><TT> left margin 0</TT> <BR><TT> right margin 80</TT> <BR><TT> top margin 1 </TT> <BR><TT> bottom margin 1</TT> <BR><TT> page length 66</TT> <BR> <BR><TT> order external by item1, item2</TT> <BR> <BR><TT> format</TT> <BR> <BR><TT> page header</TT> <BR><TT> print "------------------------------------------------------------"</TT> <BR><TT> print " PAGE HEADER"</TT> <BR><TT> print "------------------------------------------------------------"</TT> <BR> <BR> <BR><TT> before group of item2</TT> <BR><TT> skip to top of page</TT> <BR> <BR> <BR><TT> on every row</TT> <BR><TT> print "item2: ", item2, " item3: ", item3</TT> <BR> <BR> <BR><TT> page trailer</TT> <BR><TT> print "----------------------- PAGE TRAILER -----------------------"</TT> <BR> <BR><TT>END REPORT</TT> <BR> <BR><TT>-- end of code</TT> <BR> <BR> <BR>Is this a bug or am I a ...? :-) <BR> <BR>Thank's in advance <BR> <BR>-- <BR>Luis M. Agudelo Jimenez <BR>luismi@cot.es <BR> </BODY> </HTML> ------------3C704ABA5E260--