|
View previous topic :: View next topic
|
| Author |
Message |
Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
hello, how are you? I hope you are doing well.
I have a doubt with this parameters.
I know that this option is used because it permit to allocate DYNAMICALLY work space, and there is no need to use DD SORTWKXX.
My intention was to know a little more about the second parameter, which is the criteria to fill it? in the guide it says that ''specifies the maximum number of requested work data sets''
How can I know the correct number of work datasets
?
OPTION DYNALLOC=(c,d)
Thanks. |
|
| Back to top |
|
 |
Joerg.Findeisen
Senior Member

Joined: 15 Aug 2015 Posts: 1430 Location: Bamberg, Germany
|
|
|
|
Maybe this notice from DFSORT 2.5 manual is of help.
| Quote: |
A sort application usually requires intermediate storage as working space during the program run. This storage can be one of the following:
1. Hiperspace, using DFSORT's Hipersorting feature.
2. Work data sets—either allocated dynamically by DFSORT's DYNALLOC facility or specified by the user,
using JCL DD statements. If specified by the user, the intermediate storage devices and the amount
of work space must be indicated. Methods for determining the amount of work space to allocate are
explained in Appendix A, “Using work space,” on page 797.
3. A combination of Hiperspace and work data sets.
Merge and copy applications do not require intermediate storage. |
|
|
| Back to top |
|
 |
Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
| Joerg.Findeisen wrote: |
Maybe this notice from DFSORT 2.5 manual is of help.
| Quote: |
A sort application usually requires intermediate storage as working space during the program run. This storage can be one of the following:
1. Hiperspace, using DFSORT's Hipersorting feature.
2. Work data sets—either allocated dynamically by DFSORT's DYNALLOC facility or specified by the user,
using JCL DD statements. If specified by the user, the intermediate storage devices and the amount
of work space must be indicated. Methods for determining the amount of work space to allocate are
explained in Appendix A, “Using work space,” on page 797.
3. A combination of Hiperspace and work data sets.
Merge and copy applications do not require intermediate storage. |
|
'''Work data sets—either allocated dynamically by DFSORT's DYNALLOC facility or specified by the user,
using JCL DD statements'''
Why if the allocation is made by the system automatically I have to give the second parameter? what type of info I have to enter here?
Thanks again. |
|
| Back to top |
|
 |
Joerg.Findeisen
Senior Member

Joined: 15 Aug 2015 Posts: 1430 Location: Bamberg, Germany
|
|
|
|
See the specific default settings in your environment for example. I assume someone has customized DFSORT in your installation.
| Code: |
//*
//* ICEOPTS - DISPLAY DFSORT INSTALLATION OPTIONS
//*
//ICEOPTS EXEC PGM=ICETOOL
//SHOWOPTS DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//TOOLMSG DD SYSOUT=*
//TOOLIN DD *
DEFAULTS LIST(SHOWOPTS)
/* |
|
|
| Back to top |
|
 |
Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
| Joerg.Findeisen wrote: |
See the specific default settings in your environment for example. I assume someone has customized DFSORT in your installation.
| Code: |
//*
//* ICEOPTS - DISPLAY DFSORT INSTALLATION OPTIONS
//*
//ICEOPTS EXEC PGM=ICETOOL
//SHOWOPTS DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//TOOLMSG DD SYSOUT=*
//TOOLIN DD *
DEFAULTS LIST(SHOWOPTS)
/* |
|
there are uses of DD SORTWK.
They told me to check the performance of this SORTWK but I read that using dynamic allocation is easier and automatic.
For example in pgm=sort there is definition of DD SORTWK (16) and then at the same time in the same SORT there is
OPTION DYNALLOC=(SYSDA,9),FILSZ=E100000
Is the dynalloc option acting here or the DD SORTWK in the jcl?
is dynalloc option canceling the use of DD SORTWK? |
|
| Back to top |
|
 |
Joerg.Findeisen
Senior Member

Joined: 15 Aug 2015 Posts: 1430 Location: Bamberg, Germany
|
|
| Back to top |
|
 |
Rohit Umarjikar
Global Moderator

Joined: 21 Sep 2010 Posts: 3109 Location: NYC,USA
|
|
|
|
Did you read manuals? I have not used nor required to provide this option ever yet due to the way systems are set up. Look for ICE000I/ICE129I in SORT sysout and you will see your site installation option is chosen. You can then specify different values and test.
| Code: |
| OPTION DYNALLOC=(d,n),FILSZ=? |
www.ibm.com/docs/en/zos/2.1.0?topic=statements-option-control-statement |
|
| Back to top |
|
 |
Joerg.Findeisen
Senior Member

Joined: 15 Aug 2015 Posts: 1430 Location: Bamberg, Germany
|
|
|
|
When processing SMF-Data, it makes sense to use the DYNALLOC explicitly specified. More seldom to none, FILSZ is needed for my daily tasks.
For the TS requirement, I would test with
| Code: |
| OPTION DYNALLOC=(SYSALLDA,16),DYNAUTO=IGNWKDD |
. |
|
| Back to top |
|
 |
Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
Really I did not understand much of what you both say, so I will read all of the documents that you gave me.
One thing I want to say is that some manuals are something difficult to read, I usually read murachs books about cobol or jcl, I have some difficult dealing with reading direct from the manuals of ibm, because sometimes there I do not find info that later I find in other places.
thanks again. |
|
| Back to top |
|
 |
Rohit Umarjikar
Global Moderator

Joined: 21 Sep 2010 Posts: 3109 Location: NYC,USA
|
|
|
|
| Ali_gezer wrote: |
Really I did not understand much of what you both say, so I will read all of the documents that you gave me.
One thing I want to say is that some manuals are something difficult to read, I usually read murachs books about cobol or jcl, I have some difficult dealing with reading direct from the manuals of ibm, because sometimes there I do not find info that later I find in other places.
thanks again. |
You can't skip manuals and you will end up with limited or incorrect knowledge. What you originally asked is explained in detail in my link and I also requested to try and test which you have not done yet.
Most of the times, let DFSORT assign dynamically required work datasets and if you choose to provide manually then refer the manual link and it has values what to give when for what block techniques.
Good luck! |
|
| Back to top |
|
 |
Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
Hello again, thank you both for your reponses.
I have some doubts once I read the material
Using:
| Code: |
//*
//* ICEOPTS - DISPLAY DFSORT INSTALLATION OPTIONS
//*
//ICEOPTS EXEC PGM=ICETOOL
//SHOWOPTS DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//TOOLMSG DD SYSOUT=*
//TOOLIN DD *
DEFAULTS LIST(SHOWOPTS)
/* |
I see that the settings are:
DYNALOC (SYSDA,4)
HIPRMAX OPTIMAL
Then when I exect some Sort pgm I see that there is no use of HIPERSPACE.
| Code: |
//JKxx730A JOB xxxxxx,
// xxxx,MSGCLASS=A,CLASS=A,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID,REGION=0M
//STEP160 EXEC PGM=SORT,COND=(0,NE)
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTIN DD DSN=x,DISP=SHR
//SALIDA DD DSN=y,DISP=MOD
//SYSIN DD *
SORT FIELDS=(195,3,PD,A)
INCLUDE COND=(((375,1,CH,EQ,C'E'),
OR,(375,1,CH,EQ,C' ')),AND,
(280,1,CH,NE,C'E'))
OUTFIL FNAMES=SALIDA,REMOVECC,NODETAIL,
SECTIONS=(195,3,SKIP=0L,25,4,
TRAILER3=(195,3,25,4,COUNT=(M11,LENGTH=8),
TOTAL=(134,15,ZD,M11,LENGTH=15))) |
I see that there are 5 dd allocated about sortwk in the sort's output
My doubts are:
1) Is the hiperspace not used because there was no need or because system evaluated it would be not sufficient?
2) if DYNALOC is (SYSDA,4) and as I said before there was 5 allocated sortwk how do I know that this quantity (4) is sufficient? I cant understand this because I see that 4 is the max quantity of work data sets and seing the sort's output I see 5 allocations, I cant see how can I check if this was sufficient or not.
Thanks again!! |
|
| Back to top |
|
 |
Joerg.Findeisen
Senior Member

Joined: 15 Aug 2015 Posts: 1430 Location: Bamberg, Germany
|
|
|
|
| You have that Information inside the Job after it has run. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|