Согласно справочному руководству MVS JCL перед началом работы он запрашивает исключительный контроль над набором данных:
DISP and ENQ: Before starting the first step of a job, the initiator requests
control of all of the data sets in that job by issuing an ENQ for each of them,
using the value specified for DISP to determine the kind of ENQ issued. The
initiator issues the ENQ for each data set at the highest level required for that
data set by any step of the job. For example, if all steps of the job request
shared control of a specific data set (DISP=SHR) then the ENQ for that data set
is requested as SHR. If, on the other hand, any step of the job requests
exclusive control of a specific data set (DISP=NEW, DISP=MOD, or DISP=OLD), then
the ENQ for that data set is requested EXCL.
Но у меня есть два разных поведения:
a) Я открываю через ISPF DATASET_A и отправляю JCL, который использует тот же набор данных с DISP = (NEW, CATALOG, DELETE). Я получаю сообщение TSO, потому что набор данных запрашивается заданием, и JCL не запустится, пока я не выпущу набор данных через ISPF.
b) Я отправляю 2 JCL, которые используют один и тот же набор данных с DISP = (NEW, CATALOG, DELETE), но оба запускаются одновременно.
Почему задания не запрашивают монопольный доступ к набору данных при параллельной работе?