Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Count No of Records

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
rajeevkumar

New User


Joined: 18 Sep 2010
Posts: 1
Location: Mumbai

PostPosted: Sun Sep 26, 2010 9:02 pm    Post subject: Count No of Records
Reply with quote

I want to know the count of no of records. For example, suppose file has a/no and amount

ac no 1 has 10 records, how can I count?
ac 2 is has 20 records, how can I count?
similarly 10 ac no is there and each has some records, how can I count the total count of records?
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: Sun Sep 26, 2010 10:54 pm    Post subject:
Reply with quote

Hello and welcome to the forum,

When you have a question, you need to start a new topic for your question (rather than post a reply to some existing topic).

You need to post some sample input (not much, just enough to demonstrate your data and the "rules" for processing) and the output you want from the sample input. Also mention the dsorg and lrecl of the files.

When posting data (or code or jcl, etc), use the Code tag to preserve alignment and improve readability. We have a Preview function so you can see your post as it will appear to the forum (not only as it appears in the Reply Editor). When the post appears as you want, then Submit.
Back to top
View user's profile Send private message
smijoss

Active User


Joined: 30 Aug 2007
Posts: 114
Location: pune

PostPosted: Mon Sep 27, 2010 10:25 am    Post subject:
Reply with quote

read for SECTIONS and TRAILER3
Back to top
View user's profile Send private message
sqlcode1

Active Member


Joined: 08 Apr 2010
Posts: 578
Location: USA

PostPosted: Mon Sep 27, 2010 7:11 pm    Post subject:
Reply with quote

rajeevkumar,
Please post sample input data and expected output along with RECFM and LRECL for the input file.
Quote:
similarly 10 ac no is there and each has some records, how can I count the total count of records?
What do you mean by above? Please show sample data.

You may want to use OCCURS for this requirement.

Thanks,
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us