Hunkeler, Peter wrote:
>There is a drawback of specifying the number via DYNALLOC=: DF-Sort always
>allocates this number or work data sets, no matter how much space will be
>needed.
AFAIK, DFSORT does a best match based on whatever options, available REGION,
workspace and SORTIN it receives.
>Will DF-Sort adjust the size of the dynamic allocation based on the estimated
>size?
Good question...
>Is there any other option I could try, or am I stuck to DYNALLOC=(SYSDA,nnn)
>with a reasonably high "nnn"?
What you can do is, if you can know in a way BEFORE, how big your sort input
is, you create a parameter file, insert your DYNALLOC statements and pass it
along when you call DFSORT from your COBOL program:
From your sample in this thread:
SORT FIELDS=(0005,0605,CH,A)
RECORD TYPE=V,LENGTH=(009332,,,000629,00003000)
OPTION MSGDDN=SYSPRINT,DYNALLOC=(SYSDA,<insert your own
estimate>),EQUALS,FILSZ=E79326420
There is an IVP Assembler program available which demonstrate this scenario of
creating a parameter file which is passed upon calling DFSORT.
HTH!
Groete / Greetings
Elardus Engelbrecht
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN