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
 
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 Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts Matching and unmatched records!! Vignesh Sid SYNCSORT 3 Thu Nov 09, 2017 11:22 am
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm

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