[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: Multiple break processing
- Subject: Re: Multiple break processing
- From: Jimmy Webb <JimmyW@SNELLINGCORP.COM>
- Date: Tue, 29 Dec 1998 18:32:52 -0600
- Encoding: 70 TEXT
Rebecca,
With the level option, when one of the field breaks, all higher number
breaks will clear.
So in other words:
when level 3 breaks (paygroup) -> (3)print-paygroup-totals
when level 2 breaks (dept) ->(3)print-paygroup-totals (2 then 3)
->(2)print-dept-totals
when level 1 breaks (div) ->(3)print-paygroups-totals (3,2 then 1)
->(2)print-dept-totals
->(1)print-division-totals
Hope that helps.
Jimbo
>----------
>From: Rebecca Kuehn[SMTP:rebecca.kuehn@APPOUTFIT.COM]
>Sent: Tuesday, December 29, 1998 4:57 PM
>To: Multiple recipients of list SQR-USERS
>Subject: Multiple break processing
>
><<File: ATT00149.html>>
>When doing multiple break processing, why are the first and second level
>fields printing on the detail line before the "after" processing, a sub-total
>line, of the the third level field? The code is very straight-forward, from
>an example right out of the SQR Users Guide:
>
>
>begin-select
>j.paygroup
>j.deptid
>j.location
>j.emplid...
>
>print &j.location (+1,1) on-break print=change/top-page skiplines=2 level=1
>after=print-division-totals
>print &j.deptid (,10) on-break print=change/top-page skiplines=2 level=2
>after=print-dept-totals
>print &j.paygroup (,20) on-break print=change/top-page skiplines=2 level=3
>after=print-paygroup-totals...
>print $j.emplid (,30)
>
>from ps_job j
>
>order by j.location, j.deptid, j.paygroup, j.emplid
>
>The output looks like this:
>Location Dept Paygroup Emplid
>------------- -------- --------------- ------------
>location1 dept1 paygroup1 emplid1
> emplid2
>
>location1 dept1
>
>Total by paygroup1: 2
>
> paygroup2 emplid3
>
>
>Any help would be greatly appreciated...
>
>
>