IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get correct TOTAL display in EZT


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ganesh N

New User


Joined: 09 May 2008
Posts: 7
Location: Kochi

PostPosted: Fri May 09, 2008 3:37 pm
Reply with quote

Hi,

Could anyone help to solve one issue. While compuitng the Total value of one numeric field, its displaying wrongly in report , but in spool its value is correct.

eg; total calculated in pgm is 876(also displayed in spool) but in the same variable when printed in report comes as 492 only
Back to top
View user's profile Send private message
lcmontanez

New User


Joined: 19 Jun 2007
Posts: 50
Location: Chicago

PostPosted: Fri May 09, 2008 8:54 pm
Reply with quote

Please post your EZT+ code. Do you have control breaks? How is your total field defined? We need more info.
Back to top
View user's profile Send private message
Ganesh N

New User


Joined: 09 May 2008
Posts: 7
Location: Kochi

PostPosted: Tue May 13, 2008 11:40 am
Reply with quote

This is how the field is defined as below
WS-TOT-GRAND-CTR W 7 N 0 MASK('Z,ZZZ,ZZ9')
All below mentioned WS variables have the same format.

Calculated as below
WS-TOT-TEMP-CTR = (WS-TOT-OTHER-CTR +
- (WS-TOT-BLUE-CTR + WS-TOT-CASH-CTR +
+ WS-TOT-VOID-CTR))
WS-TOT-GRAND-CTR = WS-TOT-GRAND-CTR + WS-TOT-TEMP-CTR

DISPLAY 'Grand Total' WS-TOT-GRAND-CTR
When displayed here gives the correct value, But going to Print section
gives wrong value

AFTER-BREAK. PROC.
DISPLAY SKIP 3 POS 2 'GRAND TOTAL' WS-TOT-GRAND-CTR

this is the control statement given in EZT pgm
CONTROL FINAL NOPRINT WS-BREAK1 NEWPAGE NOPRINT

Can anyone explain what each field in this control statement specifies, I think problem occurs in any of the fields specified here in control statement
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue May 13, 2008 11:46 am
Reply with quote

Hello,

Your "duplicate" reply has been removed for you.

You probably need to post your report definition code as well as the "break" logic.

This appears to be a coding problem rather than EZT working incorrectly.
Back to top
View user's profile Send private message
Ganesh N

New User


Joined: 09 May 2008
Posts: 7
Location: Kochi

PostPosted: Tue May 13, 2008 4:15 pm
Reply with quote

Hi,

This is the report logic

REPORT REPORT-01 NOADJUST NODATE SPACE(1) PRINTER(REPORT01)
SEQUENCE WS-BREAK1 RZCERT-C-CERT-NO
CONTROL FINAL NOPRINT WS-BREAK1 NEWPAGE NOPRINT

Here WS-BREAK1 is always ' ' , so goes till EOF.
Back to top
View user's profile Send private message
lcmontanez

New User


Joined: 19 Jun 2007
Posts: 50
Location: Chicago

PostPosted: Tue May 13, 2008 6:57 pm
Reply with quote

Try defining the fields as:

WS-TOT-GRAND-CTR S 7 N 0 MASK('Z,ZZZ,ZZ9')
Back to top
View user's profile Send private message
Ganesh N

New User


Joined: 09 May 2008
Posts: 7
Location: Kochi

PostPosted: Wed May 14, 2008 3:24 pm
Reply with quote

Thanks a lot lcmontanez!!!

When changed the definition as per you said, it gave the correct results at the End of Report.
Back to top
View user's profile Send private message
lcmontanez

New User


Joined: 19 Jun 2007
Posts: 50
Location: Chicago

PostPosted: Wed May 14, 2008 7:02 pm
Reply with quote

Glad I could help.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts How to display the leading zeros of a... DB2 7
No new posts SDSF display Max-RC in different colors TSO/ISPF 4
No new posts Build a trailer with total an count SYNCSORT 6
Search our Forums:

Back to Top