There are some mainframe jobs needs to be submitted in bulk mode. There is a requirement to put the jobname in the generated temp dataset name. They all use the exact same skeleton JCL, including the same DSN=&&SB250DD1 DD statement. This would be more helpful to avoid the ENQ conflicts
//GENER EXEC PGM=IEBUPDTE,PARM=NEW
//SYSPRINT DD DUMMY
//SYSUT2 DD DISP=(,PASS),… alloc your temp PDS
//SYSIN DD *
./ADD NAME=PROGRAM
<your REXX Exec goes here>
/*
//REXX EXEC PGM=IRXJCL,PARM=PROGRAM
//SYSEXEC DD DISP=(OLD,PASS),DSN=*.GENER.SYSUT2


