It allways starts with 01 as the header with 02 as the detail and 99 as the trailer which has the count of 02 details records.
Our requirement is that we need to eliminate few detail records. Using Omit condition we are able to eliminate the records but the problem is in the trailer record is not reflecting the correct count. We would like the trailer record to be equal to the number of 02 records detail records after the omit condition.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
can it be done using SORT instead of ICEMAN
PGM=ICEMAN and PGM=SORT are identical - they both invoke DFSORT in the same way. SORT is an alias for ICEMAN.
Quote:
COUNT-1 does not seems to be working
This has nothing to do with using PGM=ICEMAN vs PGM=SORT. It may have to do with DFSORT PTFs you don't have installed. Show all of the //SYSOUT messages you received.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
With z/OS DFSORT V1R10 PTF UK90025 or z/OS DFSORT V1R12 PTF UK90026 (Oct,2010), you can now use DFSORT's new IFTRAIL function to update the trailer record instead of rebuilding it like this: