Search code examples
jclispf

"ENTER JOBNAME CHARACTER" in JCL ISPF


I have submitted the below code in JCL in ISPF and while submitting it is showing "Enter JOBname Characters".

On entering a character such as 'j', it is appending 'j' with jobname.. but what does that mean? Why it is asking to enter it, and what happens next once job is submitted successfully? What can we do with that appended jobname?

The code is as follows :

//TRC186 JOB (TRC,TRC,TRC186,D2,DT99X),CLASS=A,MSGLEVEL=(1,1), 
// MSGCLASS=A,NOTIFY=&SYSUID 
//STEP1 EXEC PGM=IEFBR14 
//SYSPRT1 DD DSN=TRGXXX.TEST.COBOL,DISP=(NEW,CATLG,DELETE), 
// SPACE=(TRK,(1,2,1),RLSE), 
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800) 
//SYSOUT DD SYSOUT=* 
//

On saving and submiting it is showing

ENTER JOBNAME CHARACTERS
J (Random character entered by me)
the status is job TRC186J submitted successfully.


Solution

  • TRC186 is your TSO userid.

    When you logon to TSO, there is a JOB called TRC186 which is started.

    It turns out that when using the TSO SUBMIT command (which is what is happening when you type SUBMIT) you can't sumbit a JOB that has the same name as your TSO id.

    It is possible for your site to arrange that JOBs with the same name can only run consecutively. Thus a job summitted which has the same name as your TSO id would only run once you logged-off.

    It is probably documented somewhere, whether a reason is stated is something you can investigate yourself if you are keen.

    I've never submitted a JOB with just my userid, so didn't know this would happen.

    When using SUBMIT, you can get a JOB statement generated. If you accidentally SUBMIT a program-source, you will be asked the same question you were presented with, as the JOB card generated will begin with your userid. That I've done on the odd occasion.