Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to get correct TOTAL display in EZT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Calculation mismatch in final total of Ezytrieve Program
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue May 13, 2008 11:46 am    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts display the sign only if the value is... useit DFSORT/ICETOOL 3 Wed Oct 04, 2017 5:53 pm
No new posts Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts DB2 NULL Values display V S Amarendra Reddy DB2 3 Thu Sep 07, 2017 6:59 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us