The following is used in ESP proc:
CONCAT DD(TEMPJCL) DSN('ESP.LIB1','ESP.LIB2')
And ESP reported errors like below:
ESP1765W Concatenation error rc=00000004 code=0238 info=0000
ESP1800I ABOVE ERROR OCCURRED ON FOLLOWING STATEMENT
ESP1007I CONCAT DD(TEMPJCL) DSN('ESP.LIB1','ESP.LIB2')
Component: ESP Workload Automation
Release: ALL
The error is related to the call with IBM DYNALLOC function, see the explanation of the rc and code values:
https://www.ibm.com/docs/en/zos/2.4.0?topic=codes-interpreting-error-reason-from-dynalloc
0238
Meaning: Required catalog not mounted, and user does not have volume mounting authorization. (dsname allocation)
Here are the possible solutions:
#1 Increase the TIOT size for ESP STC.
#2 Use DD in ESP STC instead of the CONCAT statement, like below:
//TEMPJCL DD DISP=SHR,DSN= ESP.LIB1
// DD DSN=ESP.LIB2,DISP=SHR
And add PREALLOC for ESP.LIB1 and ESP.LIB2 in ESPPARM.
#3 Check for the allocated datasets that are not freed as expected. For example, if REXX code is used in ESP Proc, the ALLOCX statement should have associated FREEX statement.