View previous topic :: View next topic |
Author |
Message |
ravikumar_sri2001 Beginner

Joined: 06 Dec 2002 Posts: 117 Topics: 44 Location: Chennai,India
|
Posted: Mon Aug 29, 2005 5:15 am Post subject: EZT doubts |
|
|
Hi Gurus,
I have a few doubts in Easytrieve.
1. If i code CONTROL without any field, what will happen.
2. If i code "CONTROL DEPT NOPRINT" in report, will the BEFORE-BREAK, AFTER-BREAK procedures executed, Whenever DEPT value changes.
3.
REPORT REPORT1 LINESIZE 62
SEQUENCE DEPT
CONTROL DEPT
LINE 01 DEPT NAME SALARY
BEFORE-BREAK. PROC
IF LEVEL = 1
DISPLAY "***** XXX ******"
END-IF
END-PROC
Whenever DEPT value changes, why totals are not printed.
Thanks,
Ravikumar. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Aug 29, 2005 7:00 am Post subject: |
|
|
Ravikumar,
If do not code any field on the control field then ezt prints the report as is from your input as there is no control break. A control break occurs whenever the value of any control
field changes or end-of-report occurs.
Here is a code snipet about the usage of BREAK.
Code: |
REPORT RPT
SEQUENCE REGION BRANCH
CONTROL REGION BRANCH
LINE REGION BRANCH NAME PAY-GROSS
BEFORE-BREAK. PROC
IF BRANCH BREAK . * processing lowest break
IF BRANCH HIGHEST-BREAK . * only branch is breaking
DISPLAY '*** BRANCH TOTALS ***'
ELSE-IF REGION HIGHEST-BREAK . * region is breaking also
DISPLAY '*** BRANCH AND REGION TOTALS ***'
ELSE-IF FINAL HIGHEST-BREAK . * final report totals
DISPLAY '*** BRANCH, REGION AND FINAL TOTALS ***'
END-IF
END-IF
END-PROC
|
However I suggest that you read the Easytrieve Reference Guide for a better understanding of the reporting features.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
ravikumar_sri2001 Beginner

Joined: 06 Dec 2002 Posts: 117 Topics: 44 Location: Chennai,India
|
Posted: Tue Aug 30, 2005 12:15 am Post subject: |
|
|
Hi Kolusu,
Thanks for your reply. I gone thru manual this website points to. I could not find answers for my questions 2 and 3. My shop dont have Easytrieve. Otherwise i would have experimented my questions 2 and 3.
Thanks,
Ravikumar. |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Aug 30, 2005 3:30 am Post subject: |
|
|
Quote: |
I could not find answers for my questions 2 and 3. My shop dont have Easytrieve. Otherwise i would have experimented my questions 2 and 3.
|
ravikumar_sri2001,
2. Yes the before and after break proc will execuete on dept change.
3. The totals are not printed because you are not writting a summary report.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|