IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Option DYNALLOC second parameter.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ali_gezer

Active User


Joined: 06 Apr 2021
Posts: 123
Location: argentina

PostPosted: Thu Dec 01, 2022 12:55 am
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1249
Location: Bamberg, Germany

PostPosted: Thu Dec 01, 2022 1:13 am
Reply with quote

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
View user's profile Send private message
Ali_gezer

Active User


Joined: 06 Apr 2021
Posts: 123
Location: argentina

PostPosted: Thu Dec 01, 2022 1:37 am
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1249
Location: Bamberg, Germany

PostPosted: Thu Dec 01, 2022 1:45 am
Reply with quote

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
View user's profile Send private message
Ali_gezer

Active User


Joined: 06 Apr 2021
Posts: 123
Location: argentina

PostPosted: Thu Dec 01, 2022 1:51 am
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1249
Location: Bamberg, Germany

PostPosted: Thu Dec 01, 2022 2:30 am
Reply with quote

See https://www.ibm.com/docs/en/zos/2.5.0?topic=sets-automatic-dynamic-allocation, and check with the options that you have just displayed.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Thu Dec 01, 2022 3:52 am
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1249
Location: Bamberg, Germany

PostPosted: Thu Dec 01, 2022 12:06 pm
Reply with quote

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
View user's profile Send private message
Ali_gezer

Active User


Joined: 06 Apr 2021
Posts: 123
Location: argentina

PostPosted: Thu Dec 01, 2022 5:55 pm
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Thu Dec 01, 2022 8:15 pm
Reply with quote

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
View user's profile Send private message
Ali_gezer

Active User


Joined: 06 Apr 2021
Posts: 123
Location: argentina

PostPosted: Fri Dec 02, 2022 2:47 am
Reply with quote

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
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1249
Location: Bamberg, Germany

PostPosted: Fri Dec 02, 2022 12:36 pm
Reply with quote

You have that Information inside the Job after it has run.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts SCOPE PENDING option -check data DB2 2
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts CICS vs LE: STORAGE option CICS 0
No new posts Demand with DEADLINE TIME parameter CA Products 4
Search our Forums:

Back to Top