Page 1 of 1

Data set USER.SPFTEMP1.CNTL' in use by another user .

PostPosted: Fri Jul 04, 2014 7:40 pm
by samb01
Hello,

when i run my rexx i have somtimes this message :

ISPSTART CMD(%REXX01)
ISPF system data set allocation error - press Enter to continue.
Temporary control card data set cannot be allocated.
Data set 'USER.SPFTEMP1.CNTL' in use by another user, try later.
PROBLEME DE SOUMISSION DU JCL DU SQUELETTE
ISPD117
The initially invoked CLIST ended with a return code = 8
NULLFILE was preallocated (no free was done).
READY
END



Here is my job

//MOVMBRA  EXEC PGM=IKJEFT01,DYNAMNBR=100,REGION=4M   
//SYSTSIN  DD  *                                       
PROFILE NOPREFIX                                       
ISPSTART CMD(%REXX01)                               
//SYSPROC  DD DSN=ISP.V1R12M0.SISPCLIB,DISP=SHR       
//SYSEXEC  DD  DISP=SHR,DSN=&REXX                     
//SYSTSPRT DD  SYSOUT=*                               
//ISPPROF  DD  DSN=&&PROF,DISP=(NEW,PASS),             
//     DCB=(LRECL=80,BLKSIZE=6160,RECFM=FB),   
//     SPACE=(TRK,(2,1,2)),UNIT=VIO             
//ISPMLIB  DD  DSN=ISP.V1R12M0.SISPMENU,DISP=SHR
//ISPSLIB  DD  DSN=ISP.V1R12M0.SISPSENU,DISP=SHR
//         DD  DSN=URET.SKELS,DISP=SHR         
//ISPPLIB  DD  DSN=ISP.V1R12M0.SISPPENU,DISP=SHR
//ISPTLIB  DD  DSN=ISP.V1R12M0.SISPTENU,DISP=SHR
//SYSTSPRT DD  SYSOUT=*                         
//SYSTERM  DD  SYSOUT=*                         
//SYSABEND DD  SYSOUT=*                         
//ISPLOG DD SYSOUT=*,                           
// LRECL=120,BLKSIZE=2400,DSORG=PS,RECFM=FB     




Thank's for your help.

Re: Data set USER.SPFTEMP1.CNTL' in use by another user .

PostPosted: Fri Jul 04, 2014 9:20 pm
by Robert Sample
You did not indicate any problems with this. You did not ask any questions.

So ... congratulations on your message.

Re: Data set USER.SPFTEMP1.CNTL' in use by another user .

PostPosted: Fri Jul 04, 2014 9:32 pm
by steve-myers
When you issue the ISPF SUBMIT command in edit, ISPF copies the contents of your edit work data to what amounts to temporary data set, and then issues the TSO SUBMIT command for the temporary data set.

To save time in this process, ISPF allocates a couple of these data sets - userid.SPFTEMPx.CNTL - when it starts, and deletes then when it terminates. What I think is happening here is the ISPF in your batch job is trying to allocate one of these data sets while the ISPF in your TSO session is still running.

One way to work around this problem is to submit the job outside of ISPF using the TSO SUBMIT command.

Since I don't use ISPF in batch jobs I prepare, there may be other, more clever, ways to work around this problem, that some other expert can propose, but I'm out of ideas.