VERIFIED SOLUTION i

Error 8005: Name/Address Forward count not = copies in Presort Stats and SORT CAPACITY EXCEEDED error in MailStream Plus

Product affected: MailStream Plus™
Solution applies to z/OS platforms

Issue

SORT CAPACITY EXCEEDED
or 
SORT FAILED
The question was asked how much sort area would be required/needed to run a file that has a length of 13896 with 7 million records.
It is understood that the Statistics step adds 100 bytes to each record, but how much sort work area will be enough for processing to not receive the message SORT CAPACITY EXCEEDED?

Cause

Limited SORT space capability caused the ERROR - 8005: Name/Address Forward count not = copies in Presort Stats

Note:the length of the input file is 13896 with 7 million records for processing also note when looking at large jobs take into account certain parameters can add to the sort process.

Resolution

UPDATED: May 14, 2019
This is a space issue and not a software issue, and since z/OS platform setups vary from customer to customer Pitney Bowes Software Tech Support recommends users have a conversation with their System Admin about the platform requirements before implementing the solution information provided below.

======:
The recommendation is to change the dynamic allocation parm from PARM='DYNALLOC=(SYSDA,64)' to PARM='DYNALLOC=(SYSDA,96)'. The change will provide more sortwk space. SYNCSORT will only allocate what it needs.
With a sort of this magnitude, it’s also recommended that VSCORET=96M,BMSG  also be used as in:
DYNALLOC=(SYSDA,96),VSCORET=96M,BMSG  
The VSCORET parm provides virtual storage requirements and BMSG produces sort performance diagnostics.
=====:
This recommendation has been known to work successfully for this error.
SORT EXEC PGM=SORT,PARM='DYNALLOC=(SYSDA,96),VSCORET=96M,BMSG'
SORT EXEC PGM=SORT,PARM='DYNALLOC=(SYSDA,96),VSCORET=96M,BMSG'
//$ORTPARM DD *
DYNALLOC=(SYSDA,96),VSCORET=96M,BMSG
/*
======: