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
 

 

How can I get the count of header+detail+trailer records

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

New User


Joined: 12 Mar 2006
Posts: 21

PostPosted: Fri Aug 04, 2006 8:28 pm    Post subject: How can I get the count of header+detail+trailer records
Reply with quote

I have 1 header record, 10 detail records, 1 trailer record. I should display the total count of 12 in the TRAILER record

COUNT in the OUTFIL gives me only the count of header+trailer record.
Can some1 help me pls?? Thanks!!
Back to top
View user's profile Send private message

prarthana

New User


Joined: 12 Mar 2006
Posts: 21

PostPosted: Fri Aug 04, 2006 8:29 pm    Post subject: Re: How can I get the count of header+detail+trailer records
Reply with quote

Correct:

COUNT in OUTFIL gives only the count of header+detail records.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Sat Aug 05, 2006 11:03 pm    Post subject:
Reply with quote

If the header and trailer record are actually in the input data set, then they will be included in the COUNT value.

If the header is generated by a HEADER1 parameter, it will not be included in the COUNT value. If the trailer is generated by a TRAILER1 parameter, it will not be included in the COUNT value. If you want to include the generated header and trailer in the count value, you can use COUNT+2=(edit), e.g. COUNT+2=(TTTTT).

It would have helped us understand what you need if you had included your control statements in your post.
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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Display FTP Session Count within TSO Yolanda Harvey TSO/ISPF 3 Fri Mar 10, 2017 10:31 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am


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