MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

EZT doubts

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
ravikumar_sri2001
Beginner


Joined: 06 Dec 2002
Posts: 117
Topics: 44
Location: Chennai,India

PostPosted: Mon Aug 29, 2005 5:15 am    Post subject: EZT doubts Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Aug 29, 2005 7:00 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
ravikumar_sri2001
Beginner


Joined: 06 Dec 2002
Posts: 117
Topics: 44
Location: Chennai,India

PostPosted: Tue Aug 30, 2005 12:15 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Aug 30, 2005 3:30 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group