EXEC DYNAMNBR Parameter
EXEC DYNAMNBR Parameter
The DYNAMNBR parameter is used to specify the number of resources to hold for reuse. It can be coded instead of several DD statements with the DYNAM parameter.
DYNAMNBR is an optional parameter.
Syntax -
DYNAMNBR[.procstepname]=n
n | Specifies the number to calculate the maximum number of dataset allocations for reuse. The value is from 0 through 3273 minus the number of DD statements coded at the step. |
Default and overrides -
If no DYNAMNBR parameter is coded, the default is 0.
If DYNAMNBR is coded incorrectly, the system defaults to 0 and issues a JCL warning message.
Examples -
Scenario - DYNAMNBR for a step.
//STEP01 EXEC PGM=PROG1,DYNAMNBR=9
//INPUT DD DSN=....
//OUTPUT DD DSN=....
The system should hold the dataset allocations for reuse are - 7. i.e., 9 - 2 (DD statements in the same step).