| 
 | 
Hey!  An RPG question on the RPG list?  Yeah!!!
Hoo-boy!  You get 20 lashes for still using control level indicators. <g>
You are correct, a level break always occurs when the first record is read.
But you need to distinguish between detail-time level break and total-time
level break.  So, a DETAIL level break always occurs when the first record is
read.
     C   L1   <=== this is a detail-time level break calc
     CL1      <=== this is a total-time level break calc
Typically, a detail-time level break performs housecleaning tasks, like
initializing variables, perhaps forcing the printing of the header on a new
page.
Total-time level breaks are normally used to print totals on a report, maybe
do summary processing.
It sounds like you want to avoid processing the first record's detail-time
level break.  Move the code to a total-time level break.
Dan Bale
IT - AS/400
Handleman Company
248-362-4400  Ext. 4952
D.Bale@Handleman.com
  Quiquid latine dictum sit altum viditur.
  (Whatever is said in Latin seems profound.)
-------------------------- Original Message --------------------------
hello,
 Can anyone tell me what will be the value of the control level indicators
after the first read  of a primary file ? If it is ' ON' , a control break
will occur in the first record itself .How can we handle such a situation ?
thanks!
Pedro Salé Reis
MIS Assistent
Deptº Informática
Hilti (PORTUGAL)
Tel. +351 22 956 8145
Fax. +351 22 953 76 96
E-mail reisped@hilti.com
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.