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

Count No of Records


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Sun Sep 26, 2010 10:54 pm
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
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: 577
Location: USA

PostPosted: Mon Sep 27, 2010 7:11 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top