|
View previous topic :: View next topic
|
| Author |
Message |
rajeevkumar
New User
Joined: 18 Sep 2010 Posts: 1 Location: Mumbai
|
|
|
|
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 |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
smijoss
Active User
Joined: 30 Aug 2007 Posts: 114 Location: pune
|
|
|
|
| read for SECTIONS and TRAILER3 |
|
| Back to top |
|
 |
sqlcode1
Active Member
Joined: 08 Apr 2010 Posts: 577 Location: USA
|
|
|
|
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 |
|
 |
|
|