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

TALLY Maximum Number it can hold


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

New User


Joined: 08 Mar 2007
Posts: 23
Location: CHENNAI

PostPosted: Wed Jul 21, 2010 4:47 pm
Reply with quote

I am Using TALLY keyword in my report to print # of records, but my record count is way above 100,000.So i see TALLY record count is truncated in first byte.if suppose count is 535,232 i am getting 35,232*.

How to avoid this ?
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Jul 21, 2010 5:16 pm
Reply with quote

Are you referring to the COBOL "TALLY" Special-Register? It has an internal Picture Clause of S9(05) COMP. So, I would define a WS field, as PIC S9(09) COMP (or better yet, COMP-5 if your compiler supports this) and use the WS field instead.

Bill
Back to top
View user's profile Send private message
manoz_k

New User


Joined: 08 Mar 2007
Posts: 23
Location: CHENNAI

PostPosted: Wed Jul 21, 2010 5:25 pm
Reply with quote

I am using TALLY in EasyTrieve Reporting,This is supposed to give Count of records for Summary Column, i am getting '*' towards the end of the count.Actual count's first digit is getting truncated.( only 5 digits are getting displayed )
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Jul 21, 2010 5:29 pm
Reply with quote

What does the EZT manual say about the maximum capacity of their "TALLY"?

Review the documentation and/or contact CA and all will be forgiven.... icon_wink.gif

Bill
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jul 21, 2010 6:24 pm
Reply with quote

Try using TALLYSIZE on your REPORT statement :

The TALLYSIZE option sets the print size for the field TALLY. Valid values for literal-2 are 1 through 18. The actual number of digits used for TALLY on a summary line are the summed value of TALLYSIZE and SUMSPACE.

And yes Bill is right, its all in the manual (as you can see)
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Wed Jul 21, 2010 6:57 pm
Reply with quote

About the option TALYSIZ=nn, the CA-Easytrieve/Plus Reference Guide wrote:
Specifies the size of the TALLY field in digits. The valid range is 1 to 18. The value of SUMSPAC is added to TALYSIZ to determine the effective size of the printed field. Using the defaults for SUMSPAC and TALYSIZ, the effective size of TALLY is five digits. Override is through the TALLYSIZE parameter of the REPORT statement.
Back to top
View user's profile Send private message
manoz_k

New User


Joined: 08 Mar 2007
Posts: 23
Location: CHENNAI

PostPosted: Wed Jul 21, 2010 7:24 pm
Reply with quote

Thank you All.I am thru...
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 Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
No new posts Cobol program with sequence number ra... COBOL Programming 5
Search our Forums:

Back to Top