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

Tally the number of items in report


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

New User


Joined: 19 Apr 2007
Posts: 68
Location: India

PostPosted: Mon Mar 23, 2009 3:23 pm
Reply with quote

Hi,

I have a report with a list of detail lines, which includes Account numbers and Amounts with other information. I have to include the Count of Total number of Account numbers in the report. Each Account number may or may not have duplicates. Similar to Tally is there any other option.

EX:
A/C
000122
000122
000122
000233
000444
000444
000555
000555

The Count should be 4

Thanks in Advance


Thanks,
Mouli.V
Back to top
View user's profile Send private message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Mon Mar 23, 2009 3:49 pm
Reply with quote

Mouli,
Can we have the sort as the first step.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Mar 23, 2009 3:52 pm
Reply with quote

Hi,

This post is in CA-Products part of the forum, so not sure if you can use Sort? If yes, which sort product is in use at your shop?
Back to top
View user's profile Send private message
cvadlamudi

New User


Joined: 19 Apr 2007
Posts: 68
Location: India

PostPosted: Mon Mar 23, 2009 3:53 pm
Reply with quote

Yes, but how the Sort will get the count ?

Thanks,
Mouli.V
Back to top
View user's profile Send private message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Mon Mar 23, 2009 4:19 pm
Reply with quote

Mouli,
This might be helpful to you.
www.ibmmainframes.com/about19056.html
Back to top
View user's profile Send private message
cvadlamudi

New User


Joined: 19 Apr 2007
Posts: 68
Location: India

PostPosted: Mon Mar 23, 2009 4:28 pm
Reply with quote

Hi,

Sort or any other utility is not needed here, Since i am trying to create a report using EZT and have to display the count in the report.

Thanks,
Mouli.V
Back to top
View user's profile Send private message
anandinmainframe

Active User


Joined: 31 May 2007
Posts: 171
Location: India

PostPosted: Mon Mar 23, 2009 4:41 pm
Reply with quote

Mouli,
Whether you will have the records in the same order as mentioned in OP i.e) Duplicates followed by the original values. if yes Move the Acc no to a working storage and then compare your Working storage and the input record(Acc no) if they are same then don't increment the value(Working storage for count) for input count if not then increment the value by 1. at last EOF display that working storage.
Back to top
View user's profile Send private message
cvadlamudi

New User


Joined: 19 Apr 2007
Posts: 68
Location: India

PostPosted: Mon Mar 23, 2009 4:51 pm
Reply with quote

No, i am looking for an option similar to TALLY
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 Need help on formatting a report DFSORT/ICETOOL 14
Search our Forums:

Back to Top