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
 
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 Skip records depends on count lakshmiibmmainframes DFSORT/ICETOOL 5 Sun Dec 24, 2017 9:51 pm
No new posts Compare two PS files using ICE TOOL f... SENTHIL MURUGAAN DFSORT/ICETOOL 5 Sun Dec 24, 2017 1:26 pm
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 9 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am

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