Re: Subtotals in REPORT...
Posted in 1996
Dear Hannah,
On 30 Oct 1996, hfiabema@osf1.gmu.edu (Hannah Sobie Fiabema) wrote:
>Gurus,
> I am trying to generate this report. The SELECT is:
>
>
> SELECT caseNo, ....
> FROM table
> ORDER BY caseNo[6,8]>
>
>In the report I want subtotals group by those three bytes in caseNo.
>My statement is : AFTER GROUP OF xRec.caseNo[6,8] ... this proves to be
>a problem, it generates a syntax error.
> Is there an elegant solution or will I have to use brute force to achieve
>the desired result?
>
Try the following,
---- start ----
SELECT ... FROM table
ORDER BY caseNo[6,8]
LET shorter_caseNo = caseNo[6,8]
OUTPUT TO REPORT ... (shorter_caseNo, ...)
....
REPORT ... (shorter_caseNo, ...)
AFTER GROUP OF shorter_caseNo
------------------------- end
The above should works. Good luck.
Regards
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_/_/_/_/ _/ _/ _/_/_/ Richard Wellis Sinyem
/ / / / / Company: Microlink Consultancy Sdn Bhd
_/ _/ _/ _/ _/ Tel: 082-415785 Fax: 082-428264
/ / / / /
_/_/_/_/ _/ _/ _/_/_/ E-Mail: sinyem@pc.jaring.my (home)
/ / / / /
_/ _/ _/ _/ _/ _/ senyem@hq.microln.com.my (office)
/ / / / / /
_/ _/ _/_/_/_/_/ _/_/_/ WWW: http://www.microln.com.my
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=