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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm

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